[DRE-commits] [pkg-ruby-extras] 01/02: adopt rmadison_data to handle more packages by calling rmadison on batches of 100 packages

Cédric Boutillier boutil at alioth.debian.org
Fri Oct 18 23:17:25 UTC 2013


This is an automated email from the git hooks/post-receive script.

boutil pushed a commit to branch master
in repository pkg-ruby-extras.

commit 905136ea8687e531ea5dc192e57becfb303f1123
Author: Cédric Boutillier <boutil at debian.org>
Date:   Sat Oct 19 01:06:05 2013 +0200

    adopt rmadison_data to handle more packages by calling rmadison on batches of 100 packages
---
 pkg-overview |    7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)

diff --git a/pkg-overview b/pkg-overview
index 612718b..a85d3da 100755
--- a/pkg-overview
+++ b/pkg-overview
@@ -32,7 +32,12 @@ end
 
 def rmadison_data(packages)
   data = {}
-  lines = `rmadison #{packages.join(' ')}`.lines.map(&:strip)
+  rmadison_output = ""
+  packages.each_slice(100) do |slice|
+    rmadison_output += `rmadison #{slice.join(' ')}`
+  end
+  lines = rmadison_output.lines.map(&:strip)
+
   if $?.exitstatus != 0
     puts "ERROR: rmadison failed!"
     exit(1)

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-ruby-extras/pkg-ruby-extras.git



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