Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 5 additions & 3 deletions hooks/yum/patchman.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright 2013-2016 Marcus Furlong <furlongm@gmail.com>
# Copyright 2013-2026 Marcus Furlong <furlongm@gmail.com>
#
# This file is part of Patchman.
#
Expand All @@ -23,10 +23,12 @@


def posttrans_hook(conduit):
conduit.info(2, 'Sending report to patchman server...')
servicecmd = conduit.confString('main',
'servicecmd',
'/usr/sbin/patchman-client')
if not os.path.isfile(servicecmd) or not os.access(servicecmd, os.X_OK):
return
conduit.info(2, 'Sending report to patchman server...')
args = '-n'
command = f'{servicecmd} {args}> /dev/null'
command = f'{servicecmd} {args} > /dev/null'
os.system(command)