[Piuparts-commits] [piuparts] 02/05: p-r: skip section on HTTPError while downloading Packages

Holger Levsen holger at moszumanska.debian.org
Tue Mar 15 18:27:12 UTC 2016


This is an automated email from the git hooks/post-receive script.

holger pushed a commit to branch develop
in repository piuparts.

commit 421fdfb2a602cbb68720b1ed6f3a4a9a3c4c2544
Author: Andreas Beckmann <anbe at debian.org>
Date:   Sat Mar 12 14:33:58 2016 +0100

    p-r: skip section on HTTPError while downloading Packages
    
    Signed-off-by: Andreas Beckmann <anbe at debian.org>
---
 debian/changelog   | 4 +++-
 piuparts-report.py | 3 +++
 2 files changed, 6 insertions(+), 1 deletion(-)

diff --git a/debian/changelog b/debian/changelog
index 6bb4a68..dcfe696 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -3,6 +3,8 @@ piuparts (0.71) UNRELEASED; urgency=medium
   [ Andreas Beckmann ]
   * piuparts.py:
     - Define namedtuple FileInfo globally s.t. it can be pickled.
+  * piuparts-reports.py:
+    - Skip section on HTTPError while downloading Packages.
 
   [ Holger Levsen ]
 
@@ -27,7 +29,7 @@ piuparts (0.70) unstable; urgency=medium
   * conf/distros.conf and instances/piuparts.conf.pejacevic: move squeeze to
     archive.debian.org, stop testing squeeze only suites - but keep testing
     upgrades to wheezy suites.
-  * Fix typo in piuparts_slave_join.8.txt, thanks lintian. 
+  * Fix typo in piuparts_slave_join.8.txt, thanks lintian.
 
  -- Holger Levsen <holger at debian.org>  Tue, 08 Mar 2016 13:00:22 +0100
 
diff --git a/piuparts-report.py b/piuparts-report.py
index 1f041b9..ca7e6dd 100644
--- a/piuparts-report.py
+++ b/piuparts-report.py
@@ -37,6 +37,7 @@ import re
 import string
 import yaml
 import hashlib
+from urllib2 import HTTPError
 
 # if python-rpy2 ain't installed, we don't draw fancy graphs
 try:
@@ -1698,6 +1699,8 @@ def main():
                 section.generate_output(output_directory, section_names, problem_list, web_host)
             except MissingSection as e:
                 logging.error("Configuration Error in section '%s': %s" % (section_name, e))
+            except HTTPError as e:
+                logging.error("Failed to fetch Packages files for section '%s' : %s" % (section_name, e))
 
         # static pages
         logging.debug("Writing static pages")

-- 
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