[Piuparts-commits] [SCM] piuparts git repository branch, piatti, updated. d0be1f9447a52914a593c60cc93490ad85a72379

Holger Levsen holger at layer-acht.org
Sat Dec 3 13:37:46 UTC 2011


The following commit has been merged in the piatti branch:
commit d0be1f9447a52914a593c60cc93490ad85a72379
Author: Holger Levsen <holger at layer-acht.org>
Date:   Sat Dec 3 14:37:23 2011 +0100

    neither try to link to packages in state unknown-preferred-alternative

diff --git a/piuparts-report.py b/piuparts-report.py
index 4eab11d..381a250 100644
--- a/piuparts-report.py
+++ b/piuparts-report.py
@@ -663,7 +663,7 @@ class Section:
 
     def link_to_state_page(self, section, package_name, link_target):
         state = self._binary_db.get_package_state(package_name)
-        if state != "unknown" and state != "does-not-exist":
+        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"],

-- 
piuparts git repository



More information about the Piuparts-commits mailing list