diff options
author | Luciano Bello <luciano@debian.org> | 2015-01-16 17:47:23 +0000 |
---|---|---|
committer | Luciano Bello <luciano@debian.org> | 2015-01-16 17:47:23 +0000 |
commit | adf691921c91f59fa089620b89b80b87913095ea (patch) | |
tree | e4b0f06cb91f32ef0730ca9719f8c97dba82e75e /check-external | |
parent | 4aa33bc451d17aeaf4c58cb0844261c8e909109b (diff) |
unknown-packages: kinda cache to avoid delays
git-svn-id: svn+ssh://svn.debian.org/svn/secure-testing@31392 e39458fd-73e7-0310-bf30-c45bca0a0e42
Diffstat (limited to 'check-external')
-rwxr-xr-x | check-external/unknown-packages-pts.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/check-external/unknown-packages-pts.py b/check-external/unknown-packages-pts.py index 7346d8f4c6..9a98cbab5a 100755 --- a/check-external/unknown-packages-pts.py +++ b/check-external/unknown-packages-pts.py @@ -3,9 +3,10 @@ from BeautifulSoup import BeautifulSoup import urllib2 import json import SOAPpy +import os soup = BeautifulSoup(urllib2.urlopen('https://security-tracker.debian.org/tracker/data/unknown-packages').read()) -cache_file='known-unknown-packages.cache' +cache_file=os.path.join(os.path.dirname(os.path.abspath(__file__)),'known-unknown-packages.cache') pkgs=[ r('td')[0].string for r in soup('table')[0].findAll('tr')[1:] ] @@ -16,7 +17,7 @@ for pkg in pkgs: try: ws.versions(source=pkg) except SOAPpy.faultType: - print pkg + print pkg, else: with open(cache_file, 'a') as file: file.write(pkg+"\n") |