[game-data-packager] 01/02: make_template -e: accept /usr/share/<game> too
Alexandre Detiste
detiste-guest at moszumanska.debian.org
Mon Aug 3 09:13:36 UTC 2015
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 b562165225aff371c9e3cafc8f45045a8896f8a1
Author: Alexandre Detiste <alexandre.detiste at gmail.com>
Date: Mon Aug 3 10:19:00 2015 +0200
make_template -e: accept /usr/share/<game> too
---
game_data_packager/make_template.py | 2 ++
1 file changed, 2 insertions(+)
diff --git a/game_data_packager/make_template.py b/game_data_packager/make_template.py
index dd647db..5a72af3 100644
--- a/game_data_packager/make_template.py
+++ b/game_data_packager/make_template.py
@@ -442,7 +442,9 @@ def do_one_exec(pgm,lower):
if not line.startswith('open('):
continue
file = line.split('"')[1]
+ file = file.replace('//', '/')
if (not file.startswith('/usr/share/games')
+ and not file.startswith('/usr/share/' + pgm[0])
and not file.startswith('/usr/local/')):
continue
if 'ENOENT' in line:
--
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