From 6803ea8b470b089719355ff26f0256b0a784a42a Mon Sep 17 00:00:00 2001 From: helloworld664 <3226476857@qq.com> Date: Mon, 13 Jan 2025 14:45:03 +0800 Subject: [PATCH] =?UTF-8?q?1.=20=E5=85=BC=E5=AE=B9url=E5=AD=97=E7=AC=A6?= =?UTF-8?q?=E4=B8=B2=E4=B8=AD=E5=AD=98=E5=9C=A8=E5=A4=9A=E4=B8=AA=E8=BF=9E?= =?UTF-8?q?=E7=BB=AD=E7=A9=BA=E6=A0=BC=E7=9A=84=E5=9C=BA=E6=99=AF=202.=20?= =?UTF-8?q?=E5=BD=93=E4=B8=8B=E8=BD=BD=E6=96=87=E4=BB=B6=E5=87=BA=E7=8E=B0?= =?UTF-8?q?=E9=97=AE=E9=A2=98=E4=B8=94=E6=96=87=E4=BB=B6=E5=A4=A7=E5=B0=8F?= =?UTF-8?q?=E4=B8=BA0=E6=97=B6=EF=BC=8C=E4=B8=8B=E6=AC=A1=E4=B8=8B?= =?UTF-8?q?=E8=BD=BD=E4=BC=9A=E7=9B=B4=E6=8E=A5=E8=A6=86=E7=9B=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/downloadService.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/downloadService.py b/src/downloadService.py index c43ff82..4d44bfc 100644 --- a/src/downloadService.py +++ b/src/downloadService.py @@ -45,7 +45,7 @@ yum makecache download_flag = False # create directory for url_info in self.download_list: - url_list = url_info.split(' ') + url_list = url_info.split() if len(url_list) < 2: continue url_link = url_list[1].strip() @@ -59,7 +59,7 @@ yum makecache for filename, url in filename_url_map.items(): download_flag = True file_path = os.path.join(self.download_path, filename) - if os.path.exists(file_path): + if os.path.exists(file_path) and os.path.getsize(file_path) != 0: self.tool.prt_content(f"FILE {filename} already DOWNLOADED") continue download_url = self.gen_wget_url(self.download_path, url, filename) -- Gitee