From df1817a62e5e21cc18a0df7ded11b7dc474b515d Mon Sep 17 00:00:00 2001 From: helloworld664 Date: Mon, 13 Jan 2025 11:12:38 +0800 Subject: [PATCH] =?UTF-8?q?1.=20=E5=85=BC=E5=AE=B9=E5=AD=97=E7=AC=A6?= =?UTF-8?q?=E4=B8=B2=E5=86=85=E6=9C=89=E5=A4=9A=E4=B8=AA=E7=9B=B8=E8=BF=9E?= =?UTF-8?q?=E7=A9=BA=E6=A0=BC=E7=9A=84=E5=9C=BA=E6=99=AF=202.=20=E5=BD=93?= =?UTF-8?q?=E7=9B=AE=E6=A0=87=E4=B8=8B=E8=BD=BD=E6=96=87=E4=BB=B6=E5=A4=A7?= =?UTF-8?q?=E5=B0=8F=E4=B8=BA0=E6=97=B6=E7=9B=B4=E6=8E=A5=E8=A6=86?= =?UTF-8?q?=E7=9B=96=E9=87=8D=E6=96=B0=E4=B8=8B=E8=BD=BD?= 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