[Piuparts-commits] [SCM] piuparts git repository branch, bikeshed, updated. 0.52-4-g9497c7b

Andreas Beckmann anbe at debian.org
Mon May 27 16:50:31 UTC 2013


The following commit has been merged in the bikeshed branch:
commit 8038691b984e88bd184a404a6a99372826f82980
Author: Andreas Beckmann <anbe at debian.org>
Date:   Fri May 24 10:24:07 2013 +0200

    Revert "Revert Python 2.7 requirement upgrade, and remove dwke options."
    
    This reverts commit c148081f78b8e12f258a77fe68b1125cd51fd3b6.

diff --git a/debian/changelog b/debian/changelog
index 79d466d..3d428d2 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -12,6 +12,9 @@ piuparts (0.53) UNRELEASED; urgency=low
   * piuparts-report.py:
   * Makefile:
 
+  [ David Steele ]
+  * Update python Requires to 2.7 (for argparse)
+
  -- Andreas Beckmann <anbe at debian.org>  Mon, 27 May 2013 18:24:27 +0200
 
 piuparts (0.52) unstable; urgency=low
diff --git a/debian/control b/debian/control
index 6aaeb53..1001f79 100644
--- a/debian/control
+++ b/debian/control
@@ -15,7 +15,7 @@ Build-Depends-Indep:
 Homepage: http://piuparts.debian.org
 Vcs-Git: git://anonscm.debian.org/piuparts/piuparts.git
 Vcs-Browser: http://anonscm.debian.org/gitweb/?p=piuparts/piuparts.git
-X-Python-Version: >= 2.6
+X-Python-Version: >= 2.7
 
 Package: piuparts
 Architecture: all
diff --git a/master-bin/detect_well_known_errors.py b/master-bin/detect_well_known_errors.py
index acf631a..592c0e0 100755
--- a/master-bin/detect_well_known_errors.py
+++ b/master-bin/detect_well_known_errors.py
@@ -23,6 +23,7 @@ import os
 import time
 import re
 from collections import namedtuple
+import argparse
 
 import piupartslib
 from piupartslib.conf import MissingSection
@@ -541,6 +542,24 @@ def create_problem_list( pdir ):
 
 if __name__ == '__main__':
 
+    parser = argparse.ArgumentParser(
+                 description="Detect/process well known errors to html",
+                 epilog="""
+This script processes all log files against defined "known_problem" files,
+caching the problems found, by package, into ".kpr" files. The cached data
+is summarized into html ".tpl" files in <html_dir>/<section>, which are then
+incorporated by piuparts-report into the final web reports.
+""" )
+
+    parser.add_argument( '--recheck', dest='recheck', action='store_true',
+               help="recheck all log files (delete cache)" )
+
+    parser.add_argument( '--recheck-failed', dest='recheck_failed',
+               action='store_true',
+               help="recheck failed log files (delete cache)" )
+
+    args = parser.parse_args()
+
     conf = WKE_Config()
     conf.read( CONFIG_FILE )
     if conf["proxy"]:
@@ -548,6 +567,7 @@ if __name__ == '__main__':
 
     problem_list = create_problem_list( conf['known-problem-directory'] )
 
-    detect_well_known_errors( conf, problem_list, False, False )
+    detect_well_known_errors( conf, problem_list, args.recheck,
+                              args.recheck_failed )
 
 # vi:set et ts=4 sw=4 :

-- 
piuparts git repository



More information about the Piuparts-commits mailing list