From 747af74e57f8a9967c8b39a4fb4d070762f87e6e Mon Sep 17 00:00:00 2001 From: DFRJ <8166602+dfrj@user.noreply.gitee.com> Date: Thu, 24 Jul 2025 11:26:49 +0000 Subject: [PATCH] =?UTF-8?q?update=20src/downloadService.py.=20=E5=BD=93?= =?UTF-8?q?=E4=B8=8B=E8=BD=BD=E7=9A=84=E6=96=87=E4=BB=B6=E4=B8=8D=E5=AE=8C?= =?UTF-8?q?=E6=95=B4=E6=97=B6=EF=BC=8C=E5=90=8E=E7=BB=AD=E4=B8=8B=E8=BD=BD?= =?UTF-8?q?=E4=BC=9A=E7=9B=B4=E6=8E=A5=E8=B7=B3=E8=BF=87=EF=BC=8C=E5=AF=BC?= =?UTF-8?q?=E8=87=B4=E5=AE=89=E8=A3=85=E5=A4=B1=E8=B4=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: DFRJ <8166602+dfrj@user.noreply.gitee.com> --- src/downloadService.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/downloadService.py b/src/downloadService.py index 4d44bfc..1fbd5ff 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