Donate CPU: show info on server

This commit is contained in:
Daniel Marjamäki 2018-08-23 21:54:46 +02:00
parent 40364561e3
commit 1e919e696b
1 changed files with 1 additions and 0 deletions

View File

@ -50,6 +50,7 @@ while True:
url = data[:pos]
res = re.match(r'ftp://.*pool/main/[^/]+/([^/]+)/[^/]*tar.gz',url)
if res and (url+'\n' in packages):
print('results added for package ' + res.group(1))
f = open(resultPath + '/' + res.group(1), 'wt')
f.write(data[pos+1:])
f.close()