[game-data-packager] 01/01: look_for_engines: ERROR on --install, merely WARN on --no-install

Alexandre Detiste detiste-guest at moszumanska.debian.org
Wed Jul 15 09:20:02 UTC 2015


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 6b2d678d76a5edaf613ecb666793eaecb548d572
Author: Alexandre Detiste <alexandre.detiste at gmail.com>
Date:   Wed Jul 15 11:18:51 2015 +0200

    look_for_engines: ERROR on --install, merely WARN on --no-install
    
    user can abort with ^C if needed
---
 game_data_packager/__init__.py | 12 ++----------
 1 file changed, 2 insertions(+), 10 deletions(-)

diff --git a/game_data_packager/__init__.py b/game_data_packager/__init__.py
index 0684a99..9f7eb0c 100644
--- a/game_data_packager/__init__.py
+++ b/game_data_packager/__init__.py
@@ -2381,7 +2381,7 @@ class GameData(object):
                 raise SystemExit(1)
         elif status is FillResult.UPGRADE_NEEDED:
             if force:
-                logger.warning('Engine "%s" is not up-to-date '
+                logger.warning('Engine "%s" is not up-to-date, '
                                'proceeding anyway' % engine)
             else:
                 logger.error('Engine "%s" is not up-to-date, '
@@ -2504,8 +2504,7 @@ class GameData(object):
             # a demo if we have its corresponding full game
             packages = set(self.packages.values())
 
-        if args.install:
-            self.look_for_engines(packages, force=args.force)
+        self.look_for_engines(packages, force=not args.install)
 
         self.look_for_files(paths=args.paths, search=args.search,
                 packages=packages)
@@ -3080,13 +3079,6 @@ def run_command_line():
             dest='verbose', help='hide output from external '
              'tools (default)')
 
-    group = base_parser.add_mutually_exclusive_group()
-    group.add_argument('--force', action='store_true',
-            help='force creation of packages')
-    group.add_argument('--no-force', action='store_false',
-            dest='force', help="don't create a package " +
-            "when engine is not available (default)")
-
     class DumbParser(argparse.ArgumentParser):
         def error(self, message):
             pass

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