[yum-commits] 2 commits - repodiff.py
James Antill
james at osuosl.org
Fri Apr 16 18:50:36 UTC 2010
repodiff.py | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
New commits:
commit 007bf5d4fd3147b51390d7124e64b3e431c831a9
Author: James Antill <james at and.org>
Date: Fri Apr 16 14:50:27 2010 -0400
Use the newest old changelog entry, not the oldest ... *sigh*
diff --git a/repodiff.py b/repodiff.py
index 2810108..bc2cbf7 100755
--- a/repodiff.py
+++ b/repodiff.py
@@ -219,9 +219,9 @@ def main(args):
if len(oldlogs):
# Don't sort as that can screw the order up when time is the
# same.
- oldtime = oldlogs[-1][0]
- oldauth = oldlogs[-1][2]
- oldcontent = oldlogs[-1][2]
+ oldtime = oldlogs[0][0]
+ oldauth = oldlogs[0][2]
+ oldcontent = oldlogs[0][2]
for (t, author, content) in pkg.changelog:
if t < oldtime:
break
commit 9c647a75528566c0abf7bf4d0ed8c8c03e6223a5
Author: James Antill <james at and.org>
Date: Thu Apr 15 00:54:03 2010 -0400
Fix typo on obsoletes check, in repodiff
diff --git a/repodiff.py b/repodiff.py
index 0a1c42f..2810108 100755
--- a/repodiff.py
+++ b/repodiff.py
@@ -109,7 +109,7 @@ class DiffYum(yum.YumBase):
# Remember: Obsoletes are for package names only.
poprovtup = (po.name, 'EQ', (po.epoch, po.ver, po.release))
for newpo in ao:
- if po.inPrcoRange('obsoletes', poprovtup):
+ if newpo.inPrcoRange('obsoletes', poprovtup):
obsoleted[po] = newpo
break
More information about the Yum-commits
mailing list