[Apt-listbugs-commits] [SCM] apt-listbugs development tree branch, master, updated. 0.0.95-16-gba68722

Ryan Niebur ryanryan52 at gmail.com
Fri May 15 08:29:48 UTC 2009


The following commit has been merged in the master branch:
commit 8350735346f4ce4146f9561d4802480d6146e4fe
Author: Ryan Niebur <ryanryan52 at gmail.com>
Date:   Fri May 15 01:13:37 2009 -0700

    fix what I broke

diff --git a/aptcleanup b/aptcleanup
index a12cec4..bb505b4 100755
--- a/aptcleanup
+++ b/aptcleanup
@@ -47,7 +47,7 @@ p.pins.each do |pin|
 
     # which version would get installed, if the pinning were removed ?
 
-    unpinned_candidate_version = `#{APTCACHE} -o Dir::Etc::Preferences=#{unpinned_preferences} policy #{pinned_package}`.split("\n").select{|x| x.match("Candidate:")}.collect{|x| "/" + x.split(" ")[1]}.chomp
+    unpinned_candidate_version = `#{APTCACHE} -o Dir::Etc::Preferences=#{unpinned_preferences} policy #{pinned_package}`.split("\n").select{|x| x.match("Candidate:")}.collect{|x| "/" + x.split(" ")[1]}.first
     if unpinned_candidate_version == "/(none)"
       unpinned_candidate_version = ""
       $stderr.puts "Warning: no candidate version for #{pinned_package}" if $DEBUG

-- 
apt-listbugs development tree



More information about the Apt-listbugs-commits mailing list