[Piuparts-commits] [SCM] piuparts git repository branch, develop, updated. 0.44-671-ge50fae3

Andreas Beckmann debian at abeckmann.de
Mon Jun 4 21:08:52 UTC 2012


The following commit has been merged in the develop branch:
commit e50fae39237c8b2a7fada00e3589cfe92a4d74b9
Author: Andreas Beckmann <debian at abeckmann.de>
Date:   Sun Jun 3 20:09:34 2012 +0200

    delay detect_archive_issues processing by one day
    
    Only consider logs older than one day for marking as "untestable"
    to allow piuparts-analyze to handle the log first.
    Classifying a log as bugged/affected is "better" than untestable.
    
    Signed-off-by: Andreas Beckmann <debian at abeckmann.de>

diff --git a/debian/changelog b/debian/changelog
index b4e0ddd..67054ba 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -99,6 +99,8 @@ piuparts (0.45) UNRELEASED; urgency=low
     - Don't report further bugs/versions if we found a match.
     - Classify logs with bugs filed into /bugged/ or /affected/.
     - Write .bug files with links to the BTS.
+  * detect_archive_issues: Only consider logs older than one day for marking
+    as "untestable" to allow piuparts-analyze to handle the log first.
 
   [ Leo Iannacone ]
   * piuparts.py: add --existing-chroot option, specify a directory as source
diff --git a/home/piupartsm/bin/detect_archive_issues b/home/piupartsm/bin/detect_archive_issues
index 15a3b7f..c8aafa1 100755
--- a/home/piupartsm/bin/detect_archive_issues
+++ b/home/piupartsm/bin/detect_archive_issues
@@ -50,8 +50,9 @@ get_config_value DAYS global reschedule-untestable-days 7
 LOGS=`mktemp`
 URLS=`mktemp`
 for SECTION in $SECTIONS ; do 
-	mkdir -p $MASTER/$SECTION/untestable/
-	rgrep -l -E "E: Broken packages|E: Unable to correct problems, you have held broken packages|E: Error, pkgProblemResolver::Resolve generated breaks" $MASTER/$SECTION/fail 2>/dev/null > $LOGS
+	mkdir -p $MASTER/$SECTION/fail/ $MASTER/$SECTION/untestable/
+	find $MASTER/$SECTION/fail -name '*.log' -mtime +1 | 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)
 		do

-- 
piuparts git repository



More information about the Piuparts-commits mailing list