diff --git a/src/downloadService.py b/src/downloadService.py index 4d44bfc413777c99323f3ba1ab4e52627ff1256e..1fbd5ffe59ab949dec2cd89c7e4d991047647683 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!")