[DRE-commits] [SCM] wheezy-transition-tracker.git branch, master, updated. 6e4c78f9be5c759b5abba4faf9432bb84b13c064

Antonio Terceiro terceiro at debian.org
Tue May 8 16:38:59 UTC 2012


The following commit has been merged in the master branch:
commit 6e4c78f9be5c759b5abba4faf9432bb84b13c064
Author: Antonio Terceiro <terceiro at debian.org>
Date:   Tue May 8 13:35:41 2012 -0300

    Add new script to list pending packages

diff --git a/pending.rb b/pending.rb
new file mode 100644
index 0000000..849e84f
--- /dev/null
+++ b/pending.rb
@@ -0,0 +1,32 @@
+# XXX This script must be in a Debian sid box, with apt and apt-file databases
+# up to date.
+
+$pending = {}
+$whitelist = %w[
+  ruby-defaults
+  ruby1.8
+  ruby1.9.1
+  ohai
+  amrita2
+]
+
+def search(test, shell_command)
+  packages = `(#{shell_command}) | xargs apt-cache show | grep 'Source:' | cut -d " " -f 2`.split.uniq
+  packages.reject! do |pkg|
+    $whitelist.include?(pkg)
+  end
+  packages.each do |pkg|
+    $pending[pkg] ||= []
+    $pending[pkg] << test
+  end
+end
+
+at_exit do
+  $pending.keys.sort.each do |key|
+    puts "#{key}: #{$pending[key].join(', ')}"
+  end
+end
+
+search :wrong_name, 'aptitude search "~n^lib.*-ruby !~D^ruby-" -F %p'
+
+search :wrong_install_location, 'apt-file -l search /usr/lib/ruby/1'

-- 
wheezy-transition-tracker.git



More information about the Pkg-ruby-extras-commits mailing list