[Piuparts-commits] [SCM] piuparts git repository branch, develop, updated. c80c23545711da9713794e601be0feda46034306
Andreas Beckmann
debian at abeckmann.de
Mon Dec 5 17:50:17 UTC 2011
The following commit has been merged in the develop branch:
commit efc1bd5ee89017769d1a4d596d8eef6961206fed
Author: Andreas Beckmann <debian at abeckmann.de>
Date: Mon Dec 5 15:43:36 2011 +0100
show state of providers of virtual packages
in dependency lists show status of all providers of a virtual
package along with real packages and alternative dependencies
Signed-off-by: Andreas Beckmann <debian at abeckmann.de>
diff --git a/piuparts-report.py b/piuparts-report.py
index f7c7c23..0c3a708 100644
--- a/piuparts-report.py
+++ b/piuparts-report.py
@@ -959,6 +959,18 @@ class Section:
"packagesurl": html_protect(self._config["packages-url"]),
}))
+ def _show_providers(self, dep):
+ providers = self._binary_db.get_providers(dep)
+ vlist = ""
+ if providers:
+ vlist += "\n<ul>\n"
+ for provider in providers:
+ vlist += "<li>provider %s is %s</li>\n" % \
+ (self.link_to_state_page(self._config.section, provider, provider),
+ emphasize_reason(html_protect(self._binary_db.get_package_state(provider))))
+ vlist += "</ul>\n"
+ return vlist
+
def write_state_pages(self):
for state in self._binary_db.get_states():
logging.debug("Writing page for %s" % state)
@@ -976,13 +988,15 @@ class Section:
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.get_package_state(dep))))
+ emphasize_reason(html_protect(self._binary_db.get_package_state(dep, resolve_virtual=False))))
+ vlist += self._show_providers(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.get_package_state(dep))))
+ emphasize_reason(html_protect(self._binary_db.get_package_state(dep, resolve_virtual=False))))
+ vlist += self._show_providers(dep)
vlist += "</ul>\n"
vlist += "</ul>\n"
vlist += "</li>\n"
--
piuparts git repository
More information about the Piuparts-commits
mailing list