]> piware.de Git - bin.git/blobdiff - rescore-sru
add rescore-sru
[bin.git] / rescore-sru
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'])