[Secure-testing-commits] r31391 - check-external
Luciano Bello
luciano at moszumanska.debian.org
Fri Jan 16 17:37:04 UTC 2015
Author: luciano
Date: 2015-01-16 17:37:04 +0000 (Fri, 16 Jan 2015)
New Revision: 31391
Added:
check-external/unknown-packages-pts.py
Log:
unknown-packages-pts.py: check the unknown list of packages
Added: check-external/unknown-packages-pts.py
===================================================================
--- check-external/unknown-packages-pts.py (rev 0)
+++ check-external/unknown-packages-pts.py 2015-01-16 17:37:04 UTC (rev 31391)
@@ -0,0 +1,22 @@
+#!/usr/bin/python
+from BeautifulSoup import BeautifulSoup
+import urllib2
+import json
+import SOAPpy
+
+soup = BeautifulSoup(urllib2.urlopen('https://security-tracker.debian.org/tracker/data/unknown-packages').read())
+cache_file='known-unknown-packages.cache'
+
+pkgs=[ r('td')[0].string for r in soup('table')[0].findAll('tr')[1:] ]
+
+ws = SOAPpy.SOAPProxy('https://packages.qa.debian.org/cgi-bin/soap-alpha.cgi')
+
+for pkg in pkgs:
+ if not pkg in open(cache_file).read():
+ try:
+ ws.versions(source=pkg)
+ except SOAPpy.faultType:
+ print pkg
+ else:
+ with open(cache_file, 'a') as file:
+ file.write(pkg+"\n")
Property changes on: check-external/unknown-packages-pts.py
___________________________________________________________________
Added: svn:executable
+ *
More information about the Secure-testing-commits
mailing list