[DRE-commits] [SCM] wheezy-transition-tracker.git branch, master, updated. 7c9e2596611642802bdf432c9c838b5340a23f59
Antonio Terceiro
terceiro at debian.org
Wed May 9 00:00:13 UTC 2012
The following commit has been merged in the master branch:
commit 7c9e2596611642802bdf432c9c838b5340a23f59
Author: Antonio Terceiro <terceiro at debian.org>
Date: Tue May 8 20:56:29 2012 -0300
Correctly map binary to source packages
diff --git a/pending.rb b/pending.rb
index 59bd9dc..04b7e4c 100644
--- a/pending.rb
+++ b/pending.rb
@@ -23,11 +23,12 @@ $whitelist = %w[
]
def search(test, shell_command)
- packages = `(#{shell_command}) | xargs apt-cache show | grep 'Source:' | cut -d " " -f 2`.split.uniq
- packages.reject! do |pkg|
+ binary_packages = `#{shell_command}`.split
+ binary_packages.map do |pkg|
+ `apt-cache show #{pkg} | grep 'Source:' | cut -d " " -f 2`.split.first || pkg
+ end.reject do |pkg|
$whitelist.include?(pkg)
- end
- packages.each do |pkg|
+ end.each do |pkg|
team = $team_packages.include?(pkg)
$pending[team] ||= {}
$pending[team][pkg] ||= []
@@ -40,7 +41,7 @@ at_exit do
packages = $pending[team]
puts "# Packages #{ team && '' || 'NOT'} maintained by the team (#{packages.keys.size})"
packages.keys.sort.each do |key|
- puts "#{key}: #{$pending[team][key].join(', ')}"
+ puts "#{key}: #{$pending[team][key].uniq.join(', ')}"
end
end
end
--
wheezy-transition-tracker.git
More information about the Pkg-ruby-extras-commits
mailing list