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 | ebdb9006392871275e0a94fb144f137eac58b62c (patch) | |
tree | 0e63700457f3535f05709d1d0b5f48d09da71f64 /check-external | |
parent | dae498f94a81694167bea83f4a16f83deff9ebde (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
Diffstat (limited to 'check-external')
-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") |