Skip to content

Commit

Permalink
For now, don't delete non-checksummed files for Umineko to allow resu…
Browse files Browse the repository at this point in the history
…ming downloads
  • Loading branch information
drojf committed Jul 13, 2024
1 parent b22c0d5 commit 0f473b7
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 12 deletions.
5 changes: 0 additions & 5 deletions uminekoInstaller.py
Original file line number Diff line number Diff line change
Expand Up @@ -139,11 +139,6 @@ def mainUmineko(conf):

downloaderAndExtractor.printPreview()

# Delete all non-checksummed files from the download folder, if they exist
if not optionParser.downloadManually:
print("Removing non-checksummed downloads:")
deleteExtractablesFromFolder(downloadTempDir, [x for x in downloaderAndExtractor.extractList if not x.fromMetaLink])

downloaderAndExtractor.download()

# Treat the install as "started" once the "download" stage is complete
Expand Down
7 changes: 0 additions & 7 deletions uminekoNScripterInstaller.py
Original file line number Diff line number Diff line change
Expand Up @@ -64,13 +64,6 @@ def main(conf):
downloaderAndExtractor.printPreview()

# Download files
# Delete all non-checksummed files from the download folder, if they exist
for extractableItem in downloaderAndExtractor.extractList:
extractableItemPath = os.path.join(downloadTempDir, extractableItem.filename)
if not extractableItem.fromMetaLink and os.path.exists(extractableItemPath):
print("Removing existing non-checksummed download: [{}]".format(extractableItemPath))
os.remove(extractableItemPath)

downloaderAndExtractor.download()

# If any mod options request deletion of a folder, do it before the extraction
Expand Down

0 comments on commit 0f473b7

Please sign in to comment.