[yum-commits] plugins/rpm-warm-cache
James Antill
james at osuosl.org
Mon Apr 6 13:51:51 UTC 2009
plugins/rpm-warm-cache/rpm-warm-cache.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
New commits:
commit d8acbdd604843e042d3df40e5c57066a40246c55
Author: James Antill <james at and.org>
Date: Mon Apr 6 09:51:44 2009 -0400
And for the no commands case (possible?)
diff --git a/plugins/rpm-warm-cache/rpm-warm-cache.py b/plugins/rpm-warm-cache/rpm-warm-cache.py
index 176069d..fe3c5c6 100644
--- a/plugins/rpm-warm-cache/rpm-warm-cache.py
+++ b/plugins/rpm-warm-cache/rpm-warm-cache.py
@@ -28,7 +28,7 @@ plugin_type = (TYPE_CORE,)
def postreposetup_hook(conduit):
opts, commands = conduit.getCmdLine()
- if commands is not None:
+ if commands:
cmd = commands[0]
else:
# No command given, do it as it's cheap enough
More information about the Yum-commits
mailing list