[Yum-devel] [PATCH 27/27] Needed the versionlock plugin to accept similar input for add and delete. Checks if arch is given, assumes arch=0 if not.
Frode Svendsen
frode.svendsen at basefarm.no
Mon Apr 15 07:36:18 UTC 2013
---
plugins/versionlock/versionlock.py | 3 +++
1 file changed, 3 insertions(+)
diff --git a/plugins/versionlock/versionlock.py b/plugins/versionlock/versionlock.py
index ddc5d73..056652c 100644
--- a/plugins/versionlock/versionlock.py
+++ b/plugins/versionlock/versionlock.py
@@ -161,6 +161,9 @@ class VersionLockCommand:
for ent in _read_locklist():
found = False
for match in extcmds:
+ (n, v, r, e, a) = splitFilename(match)
+ if not e:
+ match = "0:" + match
if fnmatch.fnmatch(ent, match):
found = True
break
--
1.7.10.4
More information about the Yum-devel
mailing list