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

Andreas Beckmann debian at abeckmann.de
Fri Dec 23 10:27:41 UTC 2011


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

    show status of all alternatives
    
    in the list of packages-by-state show the status of all alternative
    dependencies, not only the first
    
    Signed-off-by: Andreas Beckmann <debian at abeckmann.de>

diff --git a/piuparts-report.py b/piuparts-report.py
index 9b99c47..bc89546 100644
--- a/piuparts-report.py
+++ b/piuparts-report.py
@@ -1001,12 +1001,21 @@ class Section:
                                          package["Package"],
                                          self.link_to_source_summary(package["Package"]),
                                          html_protect(package["Maintainer"]))
-                if package.dependencies():
+                all_deps = package.all_dependencies()
+                if all_deps:
                     vlist += "\n<ul>\n"
-                    for dep in package.dependencies():
+                    for alternatives in all_deps:
+                        dep = alternatives[0]
                         vlist += "<li>dependency %s is %s</li>\n" % \
                                   (self.link_to_state_page(self._config.section,dep,dep), 
                                   emphasize_reason(html_protect(self._binary_db.state_by_name(dep))))
+                        if len(alternatives) > 1:
+                            vlist += "\n<ul>\n"
+                            for dep in alternatives[1:]:
+                                vlist += "<li>alternative dependency %s is %s</li>\n" % \
+                                          (self.link_to_state_page(self._config.section,dep,dep),
+                                          emphasize_reason(html_protect(self._binary_db.state_by_name(dep))))
+                            vlist += "</ul>\n"
                     vlist += "</ul>\n"
                 vlist += "</li>\n"
             htmlpage = string.Template(HTML_HEADER + STATE_BODY_TEMPLATE + HTML_FOOTER)

-- 
piuparts git repository



More information about the Piuparts-commits mailing list