[game-data-packager] 01/01: Make Quake 4 executables executable
Simon McVittie
smcv at debian.org
Sun Oct 25 23:47:14 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 9285616edb349a60172e79e9e6a38804dd2d32a0
Author: Simon McVittie <smcv at debian.org>
Date: Sun Oct 25 22:48:19 2015 +0000
Make Quake 4 executables executable
---
data/quake4.yaml | 7 +++++++
game_data_packager/__init__.py | 3 +++
game_data_packager/build.py | 3 +++
3 files changed, 13 insertions(+)
diff --git a/data/quake4.yaml b/data/quake4.yaml
index 78210b9..be9737c 100644
--- a/data/quake4.yaml
+++ b/data/quake4.yaml
@@ -977,6 +977,13 @@ files:
README:
distinctive_name: false
+ q4ded.x86:
+ executable: true
+ quake4.x86:
+ executable: true
+ quake4smp.x86:
+ executable: true
+
quake4-linux-1.4.2.x86.run:
download:
idstuff-mirrors:
diff --git a/game_data_packager/__init__.py b/game_data_packager/__init__.py
index 69f4e68..e2350df 100644
--- a/game_data_packager/__init__.py
+++ b/game_data_packager/__init__.py
@@ -55,6 +55,7 @@ class WantedFile(HashedFile):
self.distinctive_name = True
self.distinctive_size = False
self.download = None
+ self.executable = False
self.filename = name.split('?')[0]
self.install_as = self.filename
self.install_to = None
@@ -99,6 +100,7 @@ class WantedFile(HashedFile):
'distinctive_name': self.distinctive_name,
'distinctive_size': self.distinctive_size,
'download': self.download,
+ 'executable': self.executable,
'install_as': self.install_as,
'install_to': self.install_to,
'license': self.license,
@@ -705,6 +707,7 @@ class GameData(object):
'distinctive_name',
'distinctive_size',
'download',
+ 'executable',
'install_as',
'install_to',
'license',
diff --git a/game_data_packager/build.py b/game_data_packager/build.py
index 4390645..003d2ba 100644
--- a/game_data_packager/build.py
+++ b/game_data_packager/build.py
@@ -1465,6 +1465,9 @@ class PackagingTask(object):
check_call(['cp', '--reflink=auto',
'--preserve=timestamps', copy_from, copy_to])
+ if wanted.executable:
+ os.chmod(copy_to, 0o755)
+
for symlink, real_file in package.symlinks.items():
symlink = symlink.lstrip('/')
real_file = real_file.lstrip('/')
--
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