From 18188fda3b613e4c8c65e6b82d87e6a6c00de8da Mon Sep 17 00:00:00 2001 From: kelvinBen <19259171+kelvinBen@users.noreply.github.com> Date: Sat, 29 Oct 2022 20:53:51 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E5=A4=84=E7=90=86=E6=AD=A3?= =?UTF-8?q?=E5=B8=B8iPA=E6=96=87=E4=BB=B6=E6=97=B6=E8=A7=A3=E6=9E=90?= =?UTF-8?q?=E4=B8=8D=E5=87=BA=E6=95=B0=E6=8D=AE=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 修复处理正常iPA文件时解析不出数据问题 --- libs/task/ios_task.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/libs/task/ios_task.py b/libs/task/ios_task.py index 8b725db..c99e397 100644 --- a/libs/task/ios_task.py +++ b/libs/task/ios_task.py @@ -126,7 +126,8 @@ class iOSTask(object): if not os.path.exists(dir_path): os.makedirs(dir_path) shutil.move(old_ext_path, new_ext_path) - if os.path.exists(old_ext_path) and (".app" in old_ext_path): + # 当旧目录与新目录不一致时,删除旧的目录 + if not (old_ext_path == new_ext_path) and os.path.exists(old_ext_path) and (".app" in old_ext_path): try: # mac发生权限问题的时候做处理 os.remove(old_ext_path)