[game-data-packager] 17/24: Don't try to download from an empty URL
Simon McVittie
smcv at debian.org
Tue Dec 30 01:32:04 UTC 2014
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 85dfff90fe771fca37dd31a5010f806ecc8fada0
Author: Simon McVittie <smcv at debian.org>
Date: Mon Dec 29 17:20:24 2014 +0000
Don't try to download from an empty URL
---
lib/game_data_packager/__init__.py | 2 ++
1 file changed, 2 insertions(+)
diff --git a/lib/game_data_packager/__init__.py b/lib/game_data_packager/__init__.py
index b07f10f..e26fff9 100644
--- a/lib/game_data_packager/__init__.py
+++ b/lib/game_data_packager/__init__.py
@@ -504,6 +504,8 @@ class GameDataPackage(object):
f = open(os.path.join(self.etcdir, mirror_list))
for line in f:
url = line.strip()
+ if not url:
+ continue
if url.startswith('#'):
continue
if details.get('path', '.') != '.':
--
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