[game-data-packager] 13/25: Look for files where the build system would keep them
Simon McVittie
smcv at debian.org
Sun Oct 9 21:26:06 UTC 2016
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 9dcaed2d83f41c393ddb956a09515d4baa80f55d
Author: Simon McVittie <smcv at debian.org>
Date: Sun Oct 9 14:45:58 2016 +0100
Look for files where the build system would keep them
For example, this lets you build doom-wad.rpm on a dpkg system
by retrieving the RPMs from /usr/share/games/doom, even though
the RPM is going to put them in /usr/share/doom.
---
game_data_packager/build.py | 15 +++++++++++++++
1 file changed, 15 insertions(+)
diff --git a/game_data_packager/build.py b/game_data_packager/build.py
index ee78973..7a5c599 100644
--- a/game_data_packager/build.py
+++ b/game_data_packager/build.py
@@ -1929,6 +1929,21 @@ class PackagingTask(object):
if os.path.isdir(path) and path not in paths:
paths.append(path)
+ if (self.packaging.__class__ is not
+ self.builder_packaging.__class__):
+ path = os.path.join('/',
+ self.builder_packaging.substitute(package.install_to,
+ package.name).strip('/'))
+ logger.debug('Maybe %s', path)
+
+ if os.path.isdir(path) and path not in paths:
+ paths.append(path)
+ path = self.builder_packaging.substitute('$pkgdocdir',
+ package.name)
+ logger.debug('Maybe %s', path)
+ if os.path.isdir(path) and path not in paths:
+ paths.append(path)
+
for path in self.iter_steam_paths():
if path not in paths:
paths.append(path)
--
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