update upgrade.py

This commit is contained in:
zhongyehong 2016-12-17 17:55:39 +08:00
parent d8629cb454
commit ac8eea20f9
1 changed files with 2 additions and 2 deletions

View File

@ -161,7 +161,7 @@ def update_image():
for image in images:
if os.path.isdir(currentdir+image+"/"):
try:
sys_run("tar -zcvf %s -C %s ." % (currentdir+image+".tgz",currentdir+image))
sys_run("tar -cvf %s -C %s ." % (currentdir+image+".tz",currentdir+image))
#sys_run("rm -rf %s" % currentdir+image)
except Exception as e:
print(e)
@ -173,7 +173,7 @@ def update_image():
for image in images:
if os.path.isdir(currentdir+image+"/"):
try:
sys_run("tar -zcvf %s -C %s ." % (currentdir+image+".tgz",currentdir+image))
sys_run("tar -cvf %s -C %s ." % (currentdir+image+".tz",currentdir+image))
#sys_run("rm -rf %s" % currentdir+image)
except Exception as e:
print(e)