[game-data-packager] 01/01: make_template: avoid spawning shell
Alexandre Detiste
detiste-guest at moszumanska.debian.org
Thu Jul 13 10:11:25 UTC 2017
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 f8f5c976444c56835b36b864960d1f91410098bc
Author: Alexandre Detiste <alexandre.detiste at gmail.com>
Date: Thu Jul 13 12:10:44 2017 +0200
make_template: avoid spawning shell
not changelog worthy
---
game_data_packager/make_template.py | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/game_data_packager/make_template.py b/game_data_packager/make_template.py
index 27c9662..87c9032 100644
--- a/game_data_packager/make_template.py
+++ b/game_data_packager/make_template.py
@@ -42,6 +42,7 @@ from .unpack import TarUnpacker
from .unpack.auto import automatic_unpacker
from .util import (
check_output,
+ rm_rf,
which,
)
@@ -418,7 +419,7 @@ class GameData(object):
cwd=tmp)
self.longname = log.split('\n')[0].split('"')[1]
self.add_one_dir(os.path.join(tmp, 'app'), game=game, lang=guess_lang(exe))
- os.system('rm -r ' + tmp)
+ rm_rf(tmp)
self.add_archive(exe, lower=False)
self.file_data[os.path.basename(exe)] = dict(unpack=dict(format='innoextract'),provides=['file1','file2'])
--
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