[Secure-testing-commits] r31392 - check-external
Luciano Bello
luciano at moszumanska.debian.org
Fri Jan 16 17:47:24 UTC 2015
Author: luciano
Date: 2015-01-16 17:47:23 +0000 (Fri, 16 Jan 2015)
New Revision: 31392
Modified:
check-external/unknown-packages-pts.py
Log:
unknown-packages: kinda cache to avoid delays
Modified: check-external/unknown-packages-pts.py
===================================================================
--- check-external/unknown-packages-pts.py 2015-01-16 17:37:04 UTC (rev 31391)
+++ check-external/unknown-packages-pts.py 2015-01-16 17:47:23 UTC (rev 31392)
@@ -3,9 +3,10 @@
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 @@
try:
ws.versions(source=pkg)
except SOAPpy.faultType:
- print pkg
+ print pkg,
else:
with open(cache_file, 'a') as file:
file.write(pkg+"\n")
More information about the Secure-testing-commits
mailing list