[yum-commits] repodiff.py
James Antill
james at osuosl.org
Tue Jul 27 16:28:19 UTC 2010
repodiff.py | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
New commits:
commit 1008730cf281364660d701fdea65bfbe32ee6d62
Author: James Antill <james at and.org>
Date: Tue Jul 27 12:28:05 2010 -0400
Don't traceback when --size isn't given.
diff --git a/repodiff.py b/repodiff.py
index a4f9d42..233f534 100755
--- a/repodiff.py
+++ b/repodiff.py
@@ -242,7 +242,8 @@ def main(args):
tm = tm.strftime("%a %b %d %Y")
msg += "* %s %s\n%s\n\n" % (tm, to_unicode(author),
to_unicode(content))
- msg += "\nSize Change: %s bytes\n" % sizechange
+ if opts.size:
+ msg += "\nSize Change: %s bytes\n" % sizechange
print msg
More information about the Yum-commits
mailing list