[Apt-listbugs-commits] [SCM] apt-listbugs development tree branch, master, updated. 0.0.96-3-gaea2cf3

Ryan Niebur ryanryan52 at gmail.com
Wed Jun 3 07:17:05 UTC 2009


The following commit has been merged in the master branch:
commit cfea63b1800c0be9acf968393ba87cbc91eac1e1
Author: Francesco Poli (t1000) <frx at firenze.linux.it>
Date:   Sat May 23 19:23:10 2009 +0200

    improve logic: uninstalled packages may be pinned
    
    improve apt-listbugs behavior so that it may also pin packages which
    are not yet installed (this is useful when an 'aptitude upgrade' wants
    to automatically pull in "newly installed" buggy packages because of
    new dependencies of "upgraded" packages)

diff --git a/debian/changelog b/debian/changelog
index e53370e..0cd9042 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,8 +1,12 @@
 apt-listbugs (0.1.0) UNRELEASED; urgency=low
 
+  [ Ryan Niebur ]
   * Add DM-Upload-Allowed field, I am now a DM
 
- -- Ryan Niebur <ryanryan52 at gmail.com>  Wed, 20 May 2009 22:34:00 -0700
+  [ Francesco Poli (t1000) ]
+  * improve logic: apt-listbugs may now pin uninstalled packages too
+
+ -- Francesco Poli (t1000) <frx at firenze.linux.it>  Sat, 23 May 2009 18:15:54 +0200
 
 apt-listbugs (0.0.96) unstable; urgency=low
 
diff --git a/lib/apt-listbugs/logic.rb b/lib/apt-listbugs/logic.rb
index e4295a7..4f0316a 100644
--- a/lib/apt-listbugs/logic.rb
+++ b/lib/apt-listbugs/logic.rb
@@ -2,7 +2,7 @@
 #
 # Copyright (C) 2002  Masato Taruishi <taru at debian.org>
 # Copyright (C) 2006-2008  Junichi Uekawa <dancer at debian.org>
-# Copyright (C) 2008  Francesco Poli <frx at firenze.linux.it>
+# Copyright (C) 2008-2009  Francesco Poli <frx at firenze.linux.it>
 #
 #  This program is free software; you can redistribute it and/or modify
 #  it under the terms of the GNU General Public License as published by
@@ -466,9 +466,9 @@ class Viewer
     def pinned(pkgs, cur_pkgs, bugs)
       holdstr = ""
       pkgs.each { |pkg|
-        if cur_pkgs[pkg] == nil
-	  @config.frontend.puts sprintf(_("Package '%s' is newly installed, ignored"), pkg)
-	  next
+        pin_ver = "0.no.version"
+        if cur_pkgs[pkg] != nil
+	  pin_ver = cur_pkgs[pkg]['version']
 	end
 	holdstr << "
 Explanation: Pinned by apt-listbugs at #{Time.now}"
@@ -478,7 +478,7 @@ Explanation:   ##{bug.bug_number}: #{bug.desc.gsub("'","\\'")}"
         }
 	holdstr << "
 Package: #{pkg}
-Pin: version #{cur_pkgs[pkg]['version']}
+Pin: version #{pin_ver}
 Pin-Priority: #{@config.pin_priority}
 "
       }

-- 
apt-listbugs development tree



More information about the Apt-listbugs-commits mailing list