[game-data-packager] 17/25: Only try to download once remote files that have changed.
Simon McVittie
smcv at debian.org
Sat May 20 12:55:17 UTC 2017
This is an automated email from the git hooks/post-receive script.
smcv pushed a commit to branch debian/stretch
in repository game-data-packager.
commit 45211f06c8d8a403412b1b987fc7f531688326fb
Author: Alexandre Detiste <alexandre.detiste at gmail.com>
Date: Thu May 4 10:24:53 2017 +0200
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 c578c657a47476367dd47f13491150bfca93e19f)
---
debian/changelog | 2 ++
game_data_packager/build.py | 1 +
2 files changed, 3 insertions(+)
diff --git a/debian/changelog b/debian/changelog
index 86183ec..38d6b98 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -10,6 +10,8 @@ game-data-packager (49.1) UNRELEASED; urgency=medium
(Closes: #860998) [adetiste]
- xcom-ufo: Fix swapped file definitions for original and patched
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:
- debian/copyright.in: Update [smcv]
- debian/.gitignore: Update for game-data-packager-runtime [smcv]
diff --git a/game_data_packager/build.py b/game_data_packager/build.py
index f2c04ff..5308cec 100644
--- a/game_data_packager/build.py
+++ b/game_data_packager/build.py
@@ -773,6 +773,7 @@ class PackagingTask(object):
logger.warning("File doesn't have expected size"
" (%s vs %s), skipping %s",
size, wanted.size, url)
+ self.download_failed.add(url)
continue
if self.save_downloads is not None:
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-games/game-data-packager.git
More information about the Pkg-games-commits
mailing list