[game-data-packager] 20/25: chmod heuristic: handle package scripts correclty

Simon McVittie smcv at debian.org
Wed Feb 4 10:01:36 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 504c0a3e3c035be10d063b18e893fb4cbbd985b3
Author: Alexandre Detiste <alexandre.detiste at gmail.com>
Date:   Fri Jan 30 11:39:00 2015 +0100

    chmod heuristic: handle package scripts correclty
---
 game_data_packager/__init__.py | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/game_data_packager/__init__.py b/game_data_packager/__init__.py
index a83f63a..6e6a6b1 100644
--- a/game_data_packager/__init__.py
+++ b/game_data_packager/__init__.py
@@ -1649,7 +1649,9 @@ class GameData(object):
                     # make directories rwxr-xr-x
                     os.chmod(full, 0o755)
                 elif ((stat.S_IMODE(stat_res.st_mode) & 0o111) != 0
-                       and fn.endswith('.sh')):
+                       and (fn.endswith('.sh')
+                            or dirpath.endswith('/usr/games')
+                            or dirpath.endswith('/DEBIAN'))):
                     # make executable files rwxr-xr-x
                     os.chmod(full, 0o755)
                 else:

-- 
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