From ac8eea20f9bf76a8fcf71af783d633cb12a5cd23 Mon Sep 17 00:00:00 2001 From: zhongyehong Date: Sat, 17 Dec 2016 17:55:39 +0800 Subject: [PATCH] update upgrade.py --- tools/upgrade.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/upgrade.py b/tools/upgrade.py index f0e1b12..785b72a 100755 --- a/tools/upgrade.py +++ b/tools/upgrade.py @@ -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)