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

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


The following commit has been merged in the master branch:
commit 84f2d2c43ac9958df5502419610d0196c365f09b
Author: Andreas Beckmann <debian at abeckmann.de>
Date:   Mon Nov 21 15:17:44 2011 +0100

    update list of error states
    
    add more error states to be highlighted by emphasize_reason()
    this list should be in sync with PackagesDB._states
    
    Signed-off-by: Andreas Beckmann <debian at abeckmann.de>

diff --git a/piuparts-report.py b/piuparts-report.py
index e62773c..99e923b 100644
--- a/piuparts-report.py
+++ b/piuparts-report.py
@@ -434,7 +434,22 @@ def html_protect(vstr):
 
 
 def emphasize_reason(reason):
-    if reason in ("unknown", "failed-testing", "circular-dependency", "dependency-failed-testing", "dependency-does-not-exist", "cannot-be-tested"):
+    bad_states = [
+        #"successfully-tested",
+        "failed-testing",
+        "cannot-be-tested",
+        #"essential-required",
+        #"waiting-to-be-tested",
+        #"waiting-for-dependency-to-be-tested",
+        "dependency-failed-testing",
+        "dependency-cannot-be-tested",
+        "dependency-does-not-exist",
+        "circular-dependency",
+        "unknown",
+        "unknown-preferred-alternative",
+        "no-dependency-from-alternatives-exists",
+    ]
+    if reason in bad_states:
       reason = "<em>"+reason+"</em>"
     return reason
 

-- 
piuparts git repository



More information about the Piuparts-commits mailing list