[Apt-listbugs-commits] [SCM] apt-listbugs development tree branch, master, updated. 0.1.0-12-gd3ac0bb
Ryan Niebur
ryanryan52 at gmail.com
Mon Sep 21 20:38:03 UTC 2009
The following commit has been merged in the master branch:
commit d3ac0bb03ee280f6e75a4f405956bee5c45f8a0f
Author: Ryan Niebur <ryanryan52 at gmail.com>
Date: Mon Sep 21 13:37:58 2009 -0700
add missing env, thanks Francesco
diff --git a/aptcleanup b/aptcleanup
index 8e10511..a179a09 100755
--- a/aptcleanup
+++ b/aptcleanup
@@ -54,7 +54,7 @@ p.pins.each do |pin|
# which version would get installed, if the pinning were removed ?
unpinned_candidate_version = ""
- unpinned_candidate_version = "/" + `LC_ALL=C #{APTCACHE} -o Dir::Etc::Preferences=#{unpinned_preferences} policy #{pinned_package}`.split("\n").select{|x| x.match("Candidate:")}[0].split(" ")[1]
+ unpinned_candidate_version = "/" + `env LC_ALL=C #{APTCACHE} -o Dir::Etc::Preferences=#{unpinned_preferences} policy #{pinned_package}`.split("\n").select{|x| x.match("Candidate:")}[0].split(" ")[1]
if unpinned_candidate_version == "/(none)" or unpinned_candidate_version == nil
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