[yum-git] plugins/refresh-updatesd
James Antill
james at linux.duke.edu
Wed Feb 13 15:56:38 UTC 2008
plugins/refresh-updatesd/refresh-updatesd.py | 3 +++
1 file changed, 3 insertions(+)
New commits:
commit f06ce1d4940e33cddd419d42ea8e56d321f7d696
Author: James Antill <james at and.org>
Date: Wed Feb 13 10:55:31 2008 -0500
Don't refresh yum-updatesd if we can't have updated anything
diff --git a/plugins/refresh-updatesd/refresh-updatesd.py b/plugins/refresh-updatesd/refresh-updatesd.py
index af819d9..713aee2 100644
--- a/plugins/refresh-updatesd/refresh-updatesd.py
+++ b/plugins/refresh-updatesd/refresh-updatesd.py
@@ -24,6 +24,9 @@ def posttrans_hook(conduit):
"""
Tell yum-updatesd to refresh its state. Run only after an rpm transaction.
"""
+ if os.geteuid(): # If we aren't root, we _can't_ have updated anything
+ return
+
try:
bus = dbus.SystemBus()
except dbus.DBusException, e:
More information about the Yum-cvs-commits
mailing list