[game-data-packager] 01/01: fix parsing of '--target-format' (Closes: #857980)
Alexandre Detiste
detiste-guest at moszumanska.debian.org
Mon May 1 10:44:07 UTC 2017
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 293b25aefef9f840d1ee76e2cffbc376b4dcee14
Author: Alexandre Detiste <alexandre.detiste at gmail.com>
Date: Mon May 1 12:42:44 2017 +0200
fix parsing of '--target-format' (Closes: #857980)
---
debian/changelog | 2 +-
game_data_packager/command_line.py | 5 ++++-
2 files changed, 5 insertions(+), 2 deletions(-)
diff --git a/debian/changelog b/debian/changelog
index edffd71..96dfa58 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -39,7 +39,7 @@ game-data-packager (50) UNRELEASED; urgency=medium
- Use ImageMagick as a fallback when XCFTools are missing [adetiste]
- Add a tool to detect outdated GoG packages [adetiste]
- fix gdp-launcher for older pygobject [Ferdinand Thiessen]
- - Fix cross-build [adetiste]
+ - Fix cross-build & argument checking (Closes: #857980) [adetiste]
- TODO: sync with upcoming ScummVM 1.10.0 [adetiste]
- Add missing 'franchise:' tags [adetiste]
- .gitignore: Update for -runtime [smcv]
diff --git a/game_data_packager/command_line.py b/game_data_packager/command_line.py
index 4acb218..9ea4155 100644
--- a/game_data_packager/command_line.py
+++ b/game_data_packager/command_line.py
@@ -174,7 +174,10 @@ def run_command_line():
dumb_parser.add_argument('game', type=str, nargs='?')
dumb_parser.add_argument('paths', type=str, nargs='*')
dumb_parser.add_argument('-h', '--help', action='store_true', dest='h')
- g = dumb_parser.parse_args().game
+ try:
+ g = dumb_parser.parse_args().game
+ except TypeError:
+ g = None
zip = os.path.join(DATADIR, 'vfs.zip')
if g is None:
games = load_games()
--
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