[game-data-packager] 05/05: Allow any file to be made executable by the installation process

Simon McVittie smcv at debian.org
Sun Jan 3 23:54:12 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 60d7cf5ff06a5fd4ea2c183ee934a7860dce96ce
Author: Simon McVittie <smcv at debian.org>
Date:   Sun Jan 3 23:22:42 2016 +0000

    Allow any file to be made executable by the installation process
---
 game_data_packager/build.py | 9 +++------
 1 file changed, 3 insertions(+), 6 deletions(-)

diff --git a/game_data_packager/build.py b/game_data_packager/build.py
index 61a59cc..7ca5bcd 100644
--- a/game_data_packager/build.py
+++ b/game_data_packager/build.py
@@ -1574,6 +1574,8 @@ class PackagingTask(object):
 
                 if wanted.executable:
                     os.chmod(copy_to, 0o755)
+                else:
+                    os.chmod(copy_to, 0o644)
 
         for symlink, real_file in package.symlinks.items():
             symlink = symlink.lstrip('/')
@@ -1636,12 +1638,7 @@ class PackagingTask(object):
                 elif stat.S_ISDIR(stat_res.st_mode):
                     # make directories rwxr-xr-x
                     os.chmod(full, 0o755)
-                elif ((stat.S_IMODE(stat_res.st_mode) & 0o111) != 0
-                       and (fn.endswith('.sh')
-                            or fn.endswith('.x86')
-                            or dirpath.endswith('/usr/bin')
-                            or dirpath.endswith('/usr/games')
-                            or dirpath.endswith('/DEBIAN'))):
+                elif (stat.S_IMODE(stat_res.st_mode) & 0o111) != 0:
                     # 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