[game-data-packager] 01/01: emulate "Now running lintian..." in DEBUG mode
Alexandre Detiste
detiste-guest at moszumanska.debian.org
Thu Jan 7 12:43:05 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 59aae86ff7acc3fa4e31587d1ec190102f52e569
Author: Alexandre Detiste <alexandre.detiste at gmail.com>
Date: Thu Jan 7 13:40:46 2016 +0100
emulate "Now running lintian..." in DEBUG mode
this way the lintian-like tools are documented in packaging/
and someone doesn't have to look these up when doing a port
---
game_data_packager/build.py | 5 +++++
game_data_packager/packaging/arch.py | 1 +
2 files changed, 6 insertions(+)
diff --git a/game_data_packager/build.py b/game_data_packager/build.py
index 47a4e70..4852b27 100644
--- a/game_data_packager/build.py
+++ b/game_data_packager/build.py
@@ -2122,6 +2122,11 @@ class PackagingTask(object):
if engines:
print('it is recommended to also install this game engine: %s' % ', '.join(engines))
+ if logger.isEnabledFor(logging.DEBUG) and which(self.packaging.CHECK_CMD):
+ print('Now running %s...' % self.packaging.CHECK_CMD.title())
+ for deb in debs:
+ subprocess.check_call([self.packaging.CHECK_CMD, deb])
+
def rip_cd(self, package):
cd_device = self.cd_device
if cd_device is None:
diff --git a/game_data_packager/packaging/arch.py b/game_data_packager/packaging/arch.py
index 7ca354b..9556f4f 100644
--- a/game_data_packager/packaging/arch.py
+++ b/game_data_packager/packaging/arch.py
@@ -27,6 +27,7 @@ logger = logging.getLogger(__name__)
class ArchPackaging(PackagingSystem):
LICENSEDIR = 'usr/share/licenses'
+ CHECK_CMD = 'namcap'
INSTALL_CMD = 'pacman -S'
PACKAGE_MAP = {
'id-shr-extract': None,
--
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