[DRE-commits] [SCM] wheezy-transition-tracker.git branch, master, updated. 7e6783ea13de69b3dec00aa22e02a3a5b7aff122

Antonio Terceiro terceiro at debian.org
Tue May 8 22:20:07 UTC 2012


The following commit has been merged in the master branch:
commit 7e6783ea13de69b3dec00aa22e02a3a5b7aff122
Author: Antonio Terceiro <terceiro at debian.org>
Date:   Tue May 8 19:15:57 2012 -0300

    Split team packages from the rest

diff --git a/pending.rb b/pending.rb
index 849e84f..b0675ea 100644
--- a/pending.rb
+++ b/pending.rb
@@ -1,6 +1,17 @@
 # XXX This script must be in a Debian sid box, with apt and apt-file databases
 # up to date.
 
+team_packages_cache = '/tmp/pkg-ruby-extras.packages'
+if File.exists?(team_packages_cache)
+  $team_packages = open(team_packages_cache).read.split
+else
+  require 'open-uri'
+  $team_packages = open('http://pkg-ruby-extras.alioth.debian.org/cgi-bin/packages').read.split
+  File.open(team_packages_cache, 'w') do |f|
+    f.puts($team_packages)
+  end
+end
+
 $pending = {}
 $whitelist = %w[
   ruby-defaults
@@ -16,14 +27,20 @@ def search(test, shell_command)
     $whitelist.include?(pkg)
   end
   packages.each do |pkg|
-    $pending[pkg] ||= []
-    $pending[pkg] << test
+    team = $team_packages.include?(pkg)
+    $pending[team] ||= {}
+    $pending[team][pkg] ||= []
+    $pending[team][pkg] << test
   end
 end
 
 at_exit do
-  $pending.keys.sort.each do |key|
-    puts "#{key}: #{$pending[key].join(', ')}"
+  [true, false].each do |team|
+    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(', ')}"
+    end
   end
 end
 

-- 
wheezy-transition-tracker.git



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