diff options
author | Luciano Bello <luciano@debian.org> | 2015-01-16 17:37:04 +0000 |
---|---|---|
committer | Luciano Bello <luciano@debian.org> | 2015-01-16 17:37:04 +0000 |
commit | 4aa33bc451d17aeaf4c58cb0844261c8e909109b (patch) | |
tree | b07492c60136e9daf3768f00c2b5de97d13543f5 | |
parent | 8c6f6221d80b960ab949012fc0a38a1ee174fad1 (diff) |
unknown-packages-pts.py: check the unknown list of packages
git-svn-id: svn+ssh://svn.debian.org/svn/secure-testing@31391 e39458fd-73e7-0310-bf30-c45bca0a0e42
-rwxr-xr-x | check-external/unknown-packages-pts.py | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/check-external/unknown-packages-pts.py b/check-external/unknown-packages-pts.py new file mode 100755 index 0000000000..7346d8f4c6 --- /dev/null +++ b/check-external/unknown-packages-pts.py @@ -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") |