[DRE-commits] r1946 - tools

lucas at alioth.debian.org lucas at alioth.debian.org
Sat Oct 6 15:28:25 UTC 2007


Author: lucas
Date: 2007-10-06 15:28:25 +0000 (Sat, 06 Oct 2007)
New Revision: 1946

Added:
   tools/check-pts-subscriptions.rb
Log:
added a script to check subscriptions for a given address

Added: tools/check-pts-subscriptions.rb
===================================================================
--- tools/check-pts-subscriptions.rb	                        (rev 0)
+++ tools/check-pts-subscriptions.rb	2007-10-06 15:28:25 UTC (rev 1946)
@@ -0,0 +1,13 @@
+#!/usr/bin/ruby -w
+#
+# List subscriptions for a given address.
+# example: ./check-pts-subscriptions.rb pkg-ruby-extras-maintainers at lists.alioth.debian.org
+
+pkg = nil
+`ssh master.debian.org db4.2_dump -p /org/packages.qa.debian.org/db/subscription.db`.each_line do |l|
+  next if l !~ /^ /
+  if ARGV[0] == l.chomp.lstrip
+    puts pkg.lstrip
+  end
+  pkg = l.chomp
+end


Property changes on: tools/check-pts-subscriptions.rb
___________________________________________________________________
Name: svn:executable
   + *




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