Commit 45211f06 authored by Alexandre Detiste's avatar Alexandre Detiste Committed by Simon McVittie

Only try to download once remote files that have changed.

WARNING:game_data_packager.build:File doesn't have expected size (13419798 vs 19585198),
 skipping http://sourceforge.net/project/downloading.php?group_id=124987&filename=hexen2demo_nov1997-linux-i586.tgz
WARNING:game_data_packager.build:File doesn't have expected size (13419798 vs 19585198),
 skipping http://sourceforge.net/project/downloading.php?group_id=124987&filename=hexen2demo_nov1997-linux-i586.tgz

(cherry picked from commit c578c657)
parent bf308e3d
...@@ -10,6 +10,8 @@ game-data-packager (49.1) UNRELEASED; urgency=medium ...@@ -10,6 +10,8 @@ game-data-packager (49.1) UNRELEASED; urgency=medium
(Closes: #860998) [adetiste] (Closes: #860998) [adetiste]
- xcom-ufo: Fix swapped file definitions for original and patched - xcom-ufo: Fix swapped file definitions for original and patched
resource files (Closes: #856253) [R1dO] resource files (Closes: #856253) [R1dO]
- If a downloadable file does not have the expected content, do not
try to download it from the same URL again [adetiste]
* Internal changes: * Internal changes:
- debian/copyright.in: Update [smcv] - debian/copyright.in: Update [smcv]
- debian/.gitignore: Update for game-data-packager-runtime [smcv] - debian/.gitignore: Update for game-data-packager-runtime [smcv]
......
...@@ -773,6 +773,7 @@ class PackagingTask(object): ...@@ -773,6 +773,7 @@ class PackagingTask(object):
logger.warning("File doesn't have expected size" logger.warning("File doesn't have expected size"
" (%s vs %s), skipping %s", " (%s vs %s), skipping %s",
size, wanted.size, url) size, wanted.size, url)
self.download_failed.add(url)
continue continue
if self.save_downloads is not None: if self.save_downloads is not None:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment