[game-data-packager] 01/01: make GOG.py help text distro-agnostic

Alexandre Detiste detiste-guest at moszumanska.debian.org
Sun Jul 16 15:41:45 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 99ba6c055a48aa4909052b0e8dc3c7d21bbb81d3
Author: Alexandre Detiste <alexandre.detiste at gmail.com>
Date:   Sun Jul 16 17:41:22 2017 +0200

    make GOG.py help text distro-agnostic
---
 debian/changelog          | 2 ++
 game_data_packager/gog.py | 4 ++--
 2 files changed, 4 insertions(+), 2 deletions(-)

diff --git a/debian/changelog b/debian/changelog
index dcaf1b6..8270c9a 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -6,6 +6,8 @@ game-data-packager (54) UNRELEASED; urgency=medium
       of them being included and the other being omitted. [smcv]
     - Add a consistency check to prevent the above happening again [smcv]
     - morrowind: Do not issue warnings about a modified Morrowind.ini [smcv]
+    - GOG: make distro agnostic the help text about missing
+      lgogdownload & innoextract utilities [adetiste]
   * Internal changes:
     - Skip some of the more elaborate consistency checks when running a
       packaged version [smcv]
diff --git a/game_data_packager/gog.py b/game_data_packager/gog.py
index f5ff0e7..ac7ac7f 100644
--- a/game_data_packager/gog.py
+++ b/game_data_packager/gog.py
@@ -117,9 +117,10 @@ GOG = Gog()
 
 def run_gog_meta_mode(parsed, games):
     logger.info('Visit game-data-packager @ GOG.com: https://www.gog.com/mix/games_supported_by_debians_gamedatapackager')
+    packaging = get_native_packaging_system()
     if not which('lgogdownloader') or not which('innoextract'):
         logger.error("You need to install lgogdownloader & innoextract first")
-        logger.error("$ su -c 'apt-get install lgogdownloader innoextract'")
+        logger.error("$ su -c '%s lgogdownloader innoextract'" % ' '.join(packaging.INSTALL_CMD))
         return
 
     owned = GOG.owned_games()
@@ -132,7 +133,6 @@ def run_gog_meta_mode(parsed, games):
         owned = GOG.owned_games()
     logger.info("Found %d game(s) !" % len(owned))
 
-    packaging = get_native_packaging_system()
     found_games = set()
     found_packages = []
     for game, data in games.items():

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