[yum-commits] 2 commits - repodiff.py
James Antill
james at osuosl.org
Sun Apr 18 06:11:24 UTC 2010
repodiff.py | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
New commits:
commit d4722ce74fe655888fa9d5b02090a56f6e137ce0
Author: James Antill <james at and.org>
Date: Sun Apr 18 02:08:39 2010 -0400
Fix the actual bug in repodiff, comparison
diff --git a/repodiff.py b/repodiff.py
index bc2cbf7..7ef7c50 100755
--- a/repodiff.py
+++ b/repodiff.py
@@ -220,7 +220,7 @@ def main(args):
# Don't sort as that can screw the order up when time is the
# same.
oldtime = oldlogs[0][0]
- oldauth = oldlogs[0][2]
+ oldauth = oldlogs[0][1]
oldcontent = oldlogs[0][2]
for (t, author, content) in pkg.changelog:
if t < oldtime:
commit fce16a3df1b1a6168c942e1d41537a71f4335100
Author: James Antill <james at and.org>
Date: Sun Apr 18 02:03:24 2010 -0400
Yes, looking at code at 2am strikes again ... this was total crack.
Revert "One more fix for the changelog time comparison"
This reverts commit 3d9cf740ee9c9c2fbf8e408fe0eb2d46c1a88a00.
diff --git a/repodiff.py b/repodiff.py
index 805e3b0..bc2cbf7 100755
--- a/repodiff.py
+++ b/repodiff.py
@@ -225,8 +225,8 @@ def main(args):
for (t, author, content) in pkg.changelog:
if t < oldtime:
break
- if ((t == oldtime) and ((author != oldauth) or
- (content != oldcontent)):
+ if ((t == oldtime) and (author == oldauth) and
+ (content == oldcontent)):
break
tm = datetime.date.fromtimestamp(int(t))
tm = tm.strftime("%a %b %d %Y")
More information about the Yum-commits
mailing list