upgradecheck upgradecheck.py,1.13,1.14

Ville Skytta (scop) fedora-extras-commits at redhat.com
Tue Aug 1 19:10:24 UTC 2006


Author: scop

Update of /cvs/fedora/upgradecheck
In directory cvs-int.fedora.redhat.com:/tmp/cvs-serv22560

Modified Files:
	upgradecheck.py 
Log Message:
Don't blow up if (much) later distros than the problem spot don't have the package.


Index: upgradecheck.py
===================================================================
RCS file: /cvs/fedora/upgradecheck/upgradecheck.py,v
retrieving revision 1.13
retrieving revision 1.14
diff -u -r1.13 -r1.14
--- upgradecheck.py	1 Aug 2006 19:09:07 -0000	1.13
+++ upgradecheck.py	1 Aug 2006 19:10:21 -0000	1.14
@@ -175,7 +175,8 @@
             ix = bork
             report.append(name + ": " + owners[name].replace('@',' AT '))
             for curr in pkgdata[ix:]: # onwards from the problem spot
-                report.append("  %s: %s (%s)" % (enabled_dists[ix], evrstr(curr["evr"]), curr["repo"]))
+                if curr: # we haven't checked if all distros after the bork spot have this package
+                    report.append("  %s: %s (%s)" % (enabled_dists[ix], evrstr(curr["evr"]), curr["repo"]))
                 ix = ix + 1
             report.append("")
 




More information about the fedora-extras-commits mailing list