[game-data-packager] 01/01: give a more grepable error when build on unknown distribution

Alexandre Detiste detiste-guest at moszumanska.debian.org
Sun Mar 20 10:08:04 UTC 2016


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 c8b0dd979ed622fd244ad48627f4377e47b41455
Author: Alexandre Detiste <alexandre.detiste at gmail.com>
Date:   Sun Mar 20 11:06:56 2016 +0100

    give a more grepable error when build on unknown distribution
    
    https://github.com/a-detiste/game-data-packager/issues/1
---
 game_data_packager/version.py | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/game_data_packager/version.py b/game_data_packager/version.py
index 984e7e1..629442e 100644
--- a/game_data_packager/version.py
+++ b/game_data_packager/version.py
@@ -35,6 +35,9 @@ elif os.path.isfile('/etc/arch-release'):
     FORMAT = 'arch'
     DISTRO = 'arch'
 
+else:
+    exit('ERROR: Unknown distribution')
+
 if __name__ == '__main__':
     print('#!/usr/bin/python3')
     for const in ('GAME_PACKAGE_VERSION', 'FORMAT', 'DISTRO'):

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