[Piuparts-commits] [piuparts] 01/01: p-r: archive logs in "outdated" state
Holger Levsen
holger at layer-acht.org
Fri Mar 17 19:02:44 UTC 2017
This is an automated email from the git hooks/post-receive script.
holger pushed a commit to branch develop
in repository piuparts.
commit e5b45772262390181ce6bff25dff44fb957b304a
Author: Andreas Beckmann <anbe at debian.org>
Date: Fri Mar 17 19:57:37 2017 +0100
p-r: archive logs in "outdated" state
otherwise they would still show up in known problem reports
Signed-off-by: Andreas Beckmann <anbe at debian.org>
Signed-off-by: Holger Levsen <holger at layer-acht.org>
---
piuparts-report.py | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/piuparts-report.py b/piuparts-report.py
index 0bf7ea3..bb169cd 100644
--- a/piuparts-report.py
+++ b/piuparts-report.py
@@ -1458,11 +1458,17 @@ class Section:
logs_by_dir[vdir].remove(log)
else:
current = self._binary_db.get_version(package)
+ state = self._binary_db.get_package_state(package, resolve_virtual=False, recurse=False)
if version != current:
logging.debug("Archiving %s/%s, package is outdated (%s)" %
(vdir, log, current))
self.archive_logfile(vdir, log)
logs_by_dir[vdir].remove(log)
+ elif state == "outdated":
+ logging.debug("Archiving %s/%s, package is superseded" %
+ (vdir, log))
+ self.archive_logfile(vdir, log)
+ logs_by_dir[vdir].remove(log)
def generate_html(self):
logging.debug("Finding log files")
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/piuparts/piuparts.git
More information about the Piuparts-commits
mailing list