Changeset 6602
- Timestamp:
- Jan 16, 2018, 5:58:58 PM (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
epi/trunk/fuentes/python3-epi/epimanager.py
r6588 r6602 384 384 def download_app(self): 385 385 386 manage_download=True386 self.manage_download=True 387 387 self.download_folder={} 388 388 cmd="" … … 396 396 if self.type=="file": 397 397 if self.epi_conf["download_byscript"]: 398 manage_download=False399 400 401 if manage_download:398 self.manage_download=False 399 400 401 if self.manage_download: 402 402 403 403 for item in self.epi_conf["pkg_list"]: … … 463 463 464 464 if self.type !='apt': 465 466 if os.path.exists(self.token_result_download[1]): 467 file=open(self.token_result_download[1]) 468 content=file.readline() 469 if '0' not in content: 470 result=False 471 file.close() 472 os.remove(self.token_result_download[1]) 473 474 if result: 475 476 pkgs_todownload=len(self.download_folder) 477 cont=0 478 479 for item in self.download_folder: 480 if os.path.exists(self.download_folder[item]): 481 cont=cont+1 482 483 if cont != pkgs_todownload: 484 result=False 465 466 if self.manage_download: 467 if os.path.exists(self.token_result_download[1]): 468 file=open(self.token_result_download[1]) 469 content=file.readline() 470 if '0' not in content: 471 result=False 472 file.close() 473 os.remove(self.token_result_download[1]) 474 475 if result: 476 477 pkgs_todownload=len(self.download_folder) 478 cont=0 479 480 for item in self.download_folder: 481 if os.path.exists(self.download_folder[item]): 482 cont=cont+1 483 484 if cont != pkgs_todownload: 485 result=False 485 486 486 487 return result
Note: See TracChangeset
for help on using the changeset viewer.