From ed45312df68363afe0b73269076d62b28dd03f43 Mon Sep 17 00:00:00 2001 From: DFRJ Date: Fri, 25 Jul 2025 07:36:40 +0000 Subject: [PATCH 1/2] =?UTF-8?q?update=20src/downloadService.py.=20?= =?UTF-8?q?=E5=AF=B9=E6=96=87=E4=BB=B6=E6=98=AF=E5=90=A6=E4=B8=8B=E8=BD=BD?= =?UTF-8?q?=E6=88=90=E5=8A=9F=E5=A2=9E=E5=8A=A0=E6=A0=A1=E9=AA=8C=E6=9C=BA?= =?UTF-8?q?=E5=88=B6=EF=BC=8C=E5=A6=82=E6=9E=9C=E4=B8=8B=E8=BD=BD=E6=96=87?= =?UTF-8?q?=E4=BB=B6=E5=A4=B1=E8=B4=A5=EF=BC=8C=E5=88=99=E5=88=A0=E9=99=A4?= =?UTF-8?q?=E4=B8=8D=E5=AE=8C=E6=95=B4=E7=9A=84=E6=96=87=E4=BB=B6=EF=BC=8C?= =?UTF-8?q?=E9=81=BF=E5=85=8D=E5=BD=B1=E5=93=8D=E4=BA=8C=E6=AC=A1=E4=B8=8B?= =?UTF-8?q?=E8=BD=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: DFRJ --- src/downloadService.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/downloadService.py b/src/downloadService.py index 4d44bfc4..1fbd5ffe 100644 --- a/src/downloadService.py +++ b/src/downloadService.py @@ -64,9 +64,9 @@ yum makecache continue download_url = self.gen_wget_url(self.download_path, url, filename) self.tool.prt_content("DOWNLOAD " + filename) - with os.popen(download_url) as p: - data = p.read() - + ret = os.system(download_url) + if ret: + os.remove(file_path) if not download_flag: print("The download list is empty!") -- Gitee From 021f1922416aa6fbc9acb808bbc51b19c02c347f Mon Sep 17 00:00:00 2001 From: DFRJ Date: Fri, 25 Jul 2025 07:37:55 +0000 Subject: [PATCH 2/2] update src/downloadService.py. Signed-off-by: DFRJ --- src/downloadService.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/downloadService.py b/src/downloadService.py index 1fbd5ffe..5eee6026 100644 --- a/src/downloadService.py +++ b/src/downloadService.py @@ -66,7 +66,7 @@ yum makecache self.tool.prt_content("DOWNLOAD " + filename) ret = os.system(download_url) if ret: - os.remove(file_path) + os.remove(file_path) if not download_flag: print("The download list is empty!") -- Gitee