misc: small fix or general refactoring i did not bother commenting

This commit is contained in:
Simone Margaritelli 2019-10-20 19:22:04 +02:00
parent 677b335403
commit a4e072cf33
No known key found for this signature in database
GPG Key ID: 82E42E7F3B34C97E

@ -71,10 +71,11 @@ def install(display, update):
os.makedirs(path)
target = "%s_%s.zip" % (name, update['available'])
target_path = os.path.join(path, target)
logging.info("[update] downloading %s to %s ..." % (update['url'], target))
logging.info("[update] downloading %s to %s ..." % (update['url'], target_path))
os.system("wget '%s' -O '%s'" % (update['url'], target))
os.system('wget -q "%s" -O "%s"' % (update['url'], target_path))
def on_internet_available(agent):