We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d7c239c commit 17a052fCopy full SHA for 17a052f
hooks/yum/patchman.py
@@ -1,4 +1,4 @@
1
-# Copyright 2013-2016 Marcus Furlong <furlongm@gmail.com>
+# Copyright 2013-2026 Marcus Furlong <furlongm@gmail.com>
2
#
3
# This file is part of Patchman.
4
@@ -23,10 +23,12 @@
23
24
25
def posttrans_hook(conduit):
26
- conduit.info(2, 'Sending report to patchman server...')
27
servicecmd = conduit.confString('main',
28
'servicecmd',
29
'/usr/sbin/patchman-client')
+ if not os.path.isfile(servicecmd) or not os.access(servicecmd, os.X_OK):
30
+ return
31
+ conduit.info(2, 'Sending report to patchman server...')
32
args = '-n'
- command = f'{servicecmd} {args}> /dev/null'
33
+ command = f'{servicecmd} {args} > /dev/null'
34
os.system(command)
0 commit comments