[yum-commits] plugins/versionlock
zpavlas at osuosl.org
zpavlas at osuosl.org
Tue Sep 25 07:32:30 UTC 2012
plugins/versionlock/versionlock.py | 1 +
1 file changed, 1 insertion(+)
New commits:
commit 5895426f12354ac6ca26de8aea59d200e8fbd26c
Author: ZdenÄk Pavlas <zpavlas at redhat.com>
Date: Mon Sep 24 16:18:08 2012 +0200
Keep "/etc/yum/pluginconf.d/versionlock.list" user-readable. BZ 855905
diff --git a/plugins/versionlock/versionlock.py b/plugins/versionlock/versionlock.py
index 40756b2..69458cd 100644
--- a/plugins/versionlock/versionlock.py
+++ b/plugins/versionlock/versionlock.py
@@ -170,6 +170,7 @@ class VersionLockCommand:
if not count:
os.unlink(tmpfilename)
return 1, ['Error: versionlock delete: no matches']
+ os.chmod(tmpfilename, 0644)
os.rename(tmpfilename, filename)
return 0, ['versionlock deleted: ' + str(count)]
More information about the Yum-commits
mailing list