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 54530f114afa9868225248647886afc89e9590e2 Author: Simon McVittie <[email protected]> Date: Fri Jan 16 10:29:53 2015 +0000 Allow e.g. GDP_MIRROR=file:///tmp/gdp or just GDP_MIRROR=/tmp/gdp --- lib/game_data_packager/__init__.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/game_data_packager/__init__.py b/lib/game_data_packager/__init__.py index 49bd6a3..26ecdbf 100644 --- a/lib/game_data_packager/__init__.py +++ b/lib/game_data_packager/__init__.py @@ -1042,7 +1042,9 @@ class GameData(object): random.shuffle(mirrors) if 'GDP_MIRROR' in os.environ: url = os.environ.get('GDP_MIRROR') - if url.split(':')[0] not in ('http', 'https', 'ftp'): + if url.startswith('/'): + url = 'file://' + url + elif url.split(':')[0] not in ('http', 'https', 'ftp', 'file'): url = 'http://' + url if not url.endswith('/'): url = url + '/' -- Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-games/game-data-packager.git _______________________________________________ Pkg-games-commits mailing list [email protected] http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/pkg-games-commits

