[game-data-packager] 01/01: ground work for removal of tnt31fix.zip?repack special-casing

Alexandre Detiste detiste-guest at moszumanska.debian.org
Sat May 7 09:15:01 UTC 2016


This is an automated email from the git hooks/post-receive script.

detiste-guest pushed a commit to branch master
in repository game-data-packager.

commit 4ed3db1b71ca12cdc18247bef9d5c29878b2511f
Author: Alexandre Detiste <alexandre.detiste at gmail.com>
Date:   Sat May 7 11:14:37 2016 +0200

    ground work for removal of tnt31fix.zip?repack special-casing
---
 tools/mirror.py | 8 ++++++--
 1 file changed, 6 insertions(+), 2 deletions(-)

diff --git a/tools/mirror.py b/tools/mirror.py
index 1a239f7..85a4a6b 100755
--- a/tools/mirror.py
+++ b/tools/mirror.py
@@ -54,9 +54,13 @@ for gamename, game in load_games().items():
             archive = os.path.join(args.destination, filename)
             if os.path.isfile(archive):
                 print('Obsolete archive: %s (%s)' % (archive, file.unsuitable))
-        elif filename == 'tnt31fix.zip?repack':
             continue
-        elif file.download:
+        elif not file.download:
+            continue
+
+        if filename == 'tnt31fix.zip?repack':
+            continue
+        else:
             url = choose_mirror(file)[0]
             if '?' not in url:
                 destname = os.path.basename(url)

-- 
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