[game-data-packager] 07/08: adjust Alexandre's MIRROR change to GDP_MIRROR

Simon McVittie smcv at debian.org
Fri Jan 16 10:31:08 UTC 2015


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

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

commit ec8bb3316ce72a18af6af95b855d44591d518648
Author: Simon McVittie <smcv at debian.org>
Date:   Fri Jan 16 10:27:04 2015 +0000

    adjust Alexandre's MIRROR change to GDP_MIRROR
    
    I'm not a fan of random non-namespaced environment variables.
---
 lib/game_data_packager/__init__.py | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/lib/game_data_packager/__init__.py b/lib/game_data_packager/__init__.py
index 5c46daf..49bd6a3 100644
--- a/lib/game_data_packager/__init__.py
+++ b/lib/game_data_packager/__init__.py
@@ -1040,8 +1040,8 @@ class GameData(object):
                 logger.warning('Could not open mirror list "%s"', mirror_list,
                         exc_info=True)
         random.shuffle(mirrors)
-        if 'MIRROR' in os.environ:
-            url = os.environ.get('MIRROR')
+        if 'GDP_MIRROR' in os.environ:
+            url = os.environ.get('GDP_MIRROR')
             if url.split(':')[0] not in ('http', 'https', 'ftp'):
                 url = 'http://' + url
             if not url.endswith('/'):

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