[yum-commits] plugins/versionlock
zpavlas at osuosl.org
zpavlas at osuosl.org
Tue Apr 9 12:38:01 UTC 2013
plugins/versionlock/versionlock.py | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
New commits:
commit 28280273d395e3808f127aa2b25ea7d379a4126e
Author: Zdenek Pavlas <zpavlas at redhat.com>
Date: Tue Apr 9 14:37:05 2013 +0200
versionlock add: skip dupes
diff --git a/plugins/versionlock/versionlock.py b/plugins/versionlock/versionlock.py
index 69458cd..ddc5d73 100644
--- a/plugins/versionlock/versionlock.py
+++ b/plugins/versionlock/versionlock.py
@@ -99,9 +99,13 @@ class VersionLockCommand:
if not pkgs:
pkgs = base.pkgSack.returnPackages(patterns=extcmds)
+ done = set()
+ for ent in _read_locklist():
+ (n, v, r, e, a) = splitFilename(ent)
+ done.add((n, a, e, v, r))
+
fo = open(filename, 'a')
count = 0
- done = set()
for pkg in pkgs:
# We ignore arch, so only add one entry for foo-1.i386 and
# foo-1.x86_64.
More information about the Yum-commits
mailing list