[game-data-packager] 01/01: lgeneral: check if lgc-pg is run in a text session

Alexandre Detiste detiste-guest at moszumanska.debian.org
Mon Jun 1 04:55:38 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 1d87914814b0293781d891f994f738286b6fbba5
Author: Alexandre Detiste <alexandre.detiste at gmail.com>
Date:   Mon Jun 1 06:53:30 2015 +0200

    lgeneral: check if lgc-pg is run in a text session
    
    workaround for #784259
---
 game_data_packager/games/lgeneral.py | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/game_data_packager/games/lgeneral.py b/game_data_packager/games/lgeneral.py
index 36e66d7..5ea3bf2 100644
--- a/game_data_packager/games/lgeneral.py
+++ b/game_data_packager/games/lgeneral.py
@@ -41,6 +41,11 @@ class LGeneralGameData(GameData):
             logger.error('The "lgc-pg" tool is required for this package.')
             raise NoPackagesPossible()
 
+        if 'DISPLAY' not in os.environ and 'WAYLAND_DISPLAY' not in os.environ:
+            logger.error('The "lgc-pg" tool requires '
+                         'to run in some graphical environment.')
+            raise NoPackagesPossible()
+
         ready = super(LGeneralGameData, self).prepare_packages(packages,
                 build_demos=build_demos, download=download)
 

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