[Piuparts-commits] [SCM] piuparts git repository branch, master, updated. eda668423fa87898c59d1075118693714aa5a053

Holger Levsen holger at layer-acht.org
Fri Dec 23 10:28:12 UTC 2011


The following commit has been merged in the master branch:
commit beb01599998dcbfa6888709f19acda1cd2c31695
Author: Holger Levsen <holger at layer-acht.org>
Date:   Sat Dec 3 17:31:26 2011 +0100

    debug this further

diff --git a/piuparts-report.py b/piuparts-report.py
index 381a250..d24a44c 100644
--- a/piuparts-report.py
+++ b/piuparts-report.py
@@ -664,10 +664,14 @@ class Section:
     def link_to_state_page(self, section, package_name, link_target):
         state = self._binary_db.get_package_state(package_name)
         if state not in ("unknown", "does-not-exist", "unknown-preferred-alternative"):
-            link = "<a href=\"/%s/%s\">%s</a>" % (
-                section,
-                "state-"+state+".html"+"#"+self._binary_db._packages[package_name]["Package"],
-                link_target)
+            try:
+                link = "<a href=\"/%s/%s\">%s</a>" % (
+                  section,
+                  "state-"+state+".html"+"#"+self._binary_db._packages[package_name]["Package"],
+                  link_target)
+            except:
+                print "debug_669: %s in state %s" % (package_name, state)
+                link = "unknown-package"
         else:
           if link_target == package_name:
             link = html_protect(package_name)

-- 
piuparts git repository



More information about the Piuparts-commits mailing list