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 <[email protected]>
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

_______________________________________________
Pkg-games-commits mailing list
[email protected]
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/pkg-games-commits

Reply via email to