misc: small fix or general refactoring i did not bother commenting
This commit is contained in:
parent
677b335403
commit
a4e072cf33
@ -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):
|
||||
|
Loading…
x
Reference in New Issue
Block a user