[Apt-listbugs-commits] [apt-listbugs] 01/01: drop self test for apt_preferences.rb

Francesco Poli frx-guest at moszumanska.debian.org
Sun Mar 9 18:08:26 UTC 2014


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

frx-guest pushed a commit to branch master
in repository apt-listbugs.

commit dc3a7e7e75dba88941018f451bbf19fc42eae8e7
Author: Francesco Poli (wintermute) <invernomuto at paranoici.org>
Date:   Sun Mar 9 19:04:01 2014 +0100

    drop self test for apt_preferences.rb
    
    It was a duplicate of an obsolete version of aptcleanup.
---
 lib/debian/apt_preferences.rb | 15 ---------------
 1 file changed, 15 deletions(-)

diff --git a/lib/debian/apt_preferences.rb b/lib/debian/apt_preferences.rb
index 8210dea..dca6281 100644
--- a/lib/debian/apt_preferences.rb
+++ b/lib/debian/apt_preferences.rb
@@ -88,18 +88,3 @@ module Debian
 
 end
 
-if __FILE__ == $0
-  p = Debian::AptPreferences.new
-  buf = ""
-  p.pins.each do |pin|
-    buf << " " + pin["Package"] if pin.listbugs?
-  end
-  pinned_pkg_keys = buf.split(' ')
-  buggy_pkg_keys = []
-  open("|/usr/sbin/apt-listbugs -q list #{buf} | tail -n 1 ") { |io|
-    buf = io.read.delete!(' ').gsub!(/\([^\)]+\)/,'')
-    buggy_pkg_keys = buf.split(',')
-  }
-  $stderr.puts "#{(pinned_pkg_keys - buggy_pkg_keys).join(', ')} has been fixed"
-  p.filter( buggy_pkg_keys )
-end

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/apt-listbugs/apt-listbugs.git



More information about the Apt-listbugs-commits mailing list