[Piuparts-commits] [piuparts] 01/03: detect_archive_issues: look at failed logs older than 24 (not 48) hours
Holger Levsen
holger at layer-acht.org
Wed Mar 15 21:52:59 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 0cb2a582553de1c9b184cf9669ec6aa3a0ba7e05
Author: Andreas Beckmann <anbe at debian.org>
Date: Wed Mar 15 21:23:28 2017 +0100
detect_archive_issues: look at failed logs older than 24 (not 48) hours
Signed-off-by: Andreas Beckmann <anbe at debian.org>
Signed-off-by: Holger Levsen <holger at layer-acht.org>
---
debian/changelog | 2 ++
master-bin/detect_archive_issues.in | 5 +++--
2 files changed, 5 insertions(+), 2 deletions(-)
diff --git a/debian/changelog b/debian/changelog
index b890b8a..ed9ac3a 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -16,6 +16,8 @@ piuparts (0.77) UNRELEASED; urgency=medium
* piuparts-report.py:
- Plot all states in the graphs.
- Support new states in plots (varying number of columns in counts.txt).
+ * master-bin/detect_archive_issues:
+ - Look at failed logs older than 24 hours (48 hours previously).
-- Andreas Beckmann <anbe at debian.org> Sun, 12 Mar 2017 23:30:21 +0100
diff --git a/master-bin/detect_archive_issues.in b/master-bin/detect_archive_issues.in
index 57a1d9b..03296da 100755
--- a/master-bin/detect_archive_issues.in
+++ b/master-bin/detect_archive_issues.in
@@ -1,7 +1,7 @@
#!/bin/sh
# Copyright © 2009-2017 Holger Levsen (holger at layer-acht.org)
-# Copyright © 2011-2013 Andreas Beckmann (anbe at debian.org)
+# Copyright © 2011-2017 Andreas Beckmann (anbe at debian.org)
#
# This program is free software; you can redistribute it and/or modify it
# under the terms of the GNU General Public License as published by the
@@ -36,7 +36,8 @@ URLS=`mktemp`
for SECTION in $SECTIONS ; do
test -d $MASTER/$SECTION || continue
mkdir -p $MASTER/$SECTION/fail/ $MASTER/$SECTION/untestable/
- find $MASTER/$SECTION/fail -name '*.log' -mtime +1 | xargs -r \
+ # '-mtime +0' actually means '24 hours or older'
+ find $MASTER/$SECTION/fail -name '*.log' -mtime +0 | xargs -r \
grep -l -E "E: Broken packages|E: Unable to correct problems, you have held broken packages|E: Error, pkgProblemResolver::Resolve generated breaks" 2>/dev/null > $LOGS
if [ -s $LOGS ]; then
for package_log in $(cat $LOGS)
--
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