[game-data-packager] 03/10: recommend user to install missing engine(s)
Simon McVittie
smcv at debian.org
Tue Jan 20 21:52:18 UTC 2015
This is an automated email from the git hooks/post-receive script.
smcv pushed a commit to branch master
in repository game-data-packager.
commit 36b3e8b5b482178f528f494cf5b2ca392afb3df6
Author: Alexandre Detiste <alexandre.detiste at gmail.com>
Date: Sun Jan 18 20:47:04 2015 +0100
recommend user to install missing engine(s)
as in most case - except Hexen - there should only one recommended engine
this sentence is writen in singular.
If there were a tool that could install local & remote packages at once
(dpkg -i data.deb + apt-get install engine); this coudl be used
to avoid to run 'su' twice. A other option is to use
a two line temporary shell script, but it's ugly.
---
lib/game_data_packager/__init__.py | 11 +++++++++++
1 file changed, 11 insertions(+)
diff --git a/lib/game_data_packager/__init__.py b/lib/game_data_packager/__init__.py
index 92b8c8f..5a36064 100644
--- a/lib/game_data_packager/__init__.py
+++ b/lib/game_data_packager/__init__.py
@@ -1726,6 +1726,17 @@ class GameData(object):
if install_debs:
self.install_packages(debs)
+ engines = set()
+ for package in ready:
+ engine = package.debian.get('engine')
+ if not engine:
+ continue
+ engine = engine.split('|')[0].strip()
+ if not os.path.isdir(os.path.join('/usr/share/doc/', engine)):
+ engines.add(engine)
+ if engines:
+ print('it is recommended to also install this game engine: %s' % ', '.join(engines))
+
def prepare_packages(self, packages, build_demos=False, download=True):
possible = set()
--
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