[Piuparts-commits] [SCM] piuparts git repository branch, master, updated. 0.48-79-gdf94975

Andreas Beckmann debian at abeckmann.de
Sat Jan 12 11:33:17 UTC 2013


The following commit has been merged in the master branch:
commit 8cbff7ff74ca2dd9fa45ce9c97163a5cc0f233dc
Author: Andreas Beckmann <debian at abeckmann.de>
Date:   Mon Dec 17 02:13:28 2012 +0100

    p-a: sort bugs and try the newest first
    
    newer bugs may have been uncovered by new piuparts features and
    may hide older issues
    
    Signed-off-by: Andreas Beckmann <debian at abeckmann.de>

diff --git a/debian/changelog b/debian/changelog
index 30033c0..4eec69d 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -25,6 +25,8 @@ piuparts (0.49) UNRELEASED; urgency=low
   * piuparts-slave.py:
     - Disable X forwarding while connecting to master.
     - Move checks for package existence to test_package().
+  * piuparts-analyze.py:
+    - Sort bugs and try the newest bug first.
   * piuparts-report.py:
     - Fix URLs to piatti's config.
     - Hardlink the logfiles to the htdocs tree (with copy as fallback).
diff --git a/piuparts-analyze.py b/piuparts-analyze.py
index 9378687..45970f4 100644
--- a/piuparts-analyze.py
+++ b/piuparts-analyze.py
@@ -238,10 +238,14 @@ def all_piuparts_bugs():
 
 
 def piuparts_bugs_in(package):
-    return debianbts.get_bugs('package', package, 'bugs', all_piuparts_bugs())
+    bugs = debianbts.get_bugs('package', package, 'bugs', all_piuparts_bugs())
+    bugs.sort(reverse=True)
+    return bugs
 
 def piuparts_bugs_affecting(package):
-    return debianbts.get_bugs('affects', package, 'bugs', all_piuparts_bugs())
+    bugs = debianbts.get_bugs('affects', package, 'bugs', all_piuparts_bugs())
+    bugs.sort(reverse=True)
+    return bugs
 
 
 def main():

-- 
piuparts git repository



More information about the Piuparts-commits mailing list