]> git.donarmstrong.com Git - debbugs.git/commitdiff
Allow for the archiving of bugs in removed packages (closes: #475622)
authorDon Armstrong <don@donarmstrong.com>
Mon, 9 Jun 2008 18:23:53 +0000 (11:23 -0700)
committerDon Armstrong <don@donarmstrong.com>
Mon, 9 Jun 2008 18:23:53 +0000 (11:23 -0700)
Debbugs/Status.pm
debian/changelog

index 020e4c18ddf13022b63f0010150eb13289e18f92..52e28edf9573f22ad12d6a126ff0a8a84d8e0cad 100644 (file)
@@ -729,7 +729,10 @@ sub bug_archiveable{
               last if $buggy eq 'found';
               $min_fixed_time = min($time_versions{$version},$min_fixed_time);
          }
-         $min_archive_days = max($min_archive_days,ceil($config{remove_age} - (time - $min_fixed_time)/(60*60*24)));
+         $min_archive_days = max($min_archive_days,ceil($config{remove_age} - (time - $min_fixed_time)/(60*60*24)))
+              # if there are no versions in the archive at all, then
+              # we can archive if enough days have passed
+              if @sourceversions;
      }
      # If $param{ignore_time}, then we should ignore time.
      if ($param{ignore_time}) {
index 339779a187a5c600272e4f42174722004aeb4173..ecce0f28e20ef901da6b6122361a22e7022411ed 100644 (file)
@@ -214,6 +214,7 @@ debbugs (2.4.2) UNRELEASED; urgency=low
       (closes: #465332,#458822)
     - Deal properly with \r line endings (closes: #467190)
     - Distinguish between reports and followups (closes: #459866)
+    - Allow for the archiving of bugs in removed packages (closes: #475622)
 
   
  -- Colin Watson <cjwatson@debian.org>  Fri, 20 Jun 2003 18:57:25 +0100