]> piware.de Git - bin.git/commitdiff
add rescore-sru
authormartin@piware.de <>
Wed, 3 Dec 2008 13:55:02 +0000 (05:55 -0800)
committermartin@piware.de <>
Wed, 3 Dec 2008 13:55:02 +0000 (05:55 -0800)
rescore-sru [new file with mode: 0755]

diff --git a/rescore-sru b/rescore-sru
new file mode 100755 (executable)
index 0000000..907ece8
--- /dev/null
@@ -0,0 +1,15 @@
+#!/usr/bin/python
+
+import subprocess, urllib, re
+
+URL='http://people.ubuntu.com/~ubuntu-archive/pending-sru.html'
+
+prev = ''
+for m in re.finditer('href="https://launchpad.net/ubuntu/(\w+)/\+source/([\w_-]+)/?"',
+    urllib.urlopen(URL).read()):
+    suite = m.group(1) + '-proposed'
+    src = m.group(2)
+    if src == prev:
+        continue
+    prev = src
+    subprocess.call(['buildd', src, suite, 'rescore'])