1
0
mirror of https://github.com/openSUSE/osc.git synced 2025-09-06 13:18:42 +02:00

getbinaries: make .AppImage files executable

shouldn't be a security issue, since they are always in subdirectories
This commit is contained in:
2017-02-27 09:45:37 +01:00
parent df8e7d2fca
commit cf656e30d7
2 changed files with 3 additions and 0 deletions

1
NEWS
View File

@@ -1,6 +1,7 @@
0.157
- add unpublish command (requires OBS 2.8)
- results: show multibuild results by default
- getbinaries: make .AppImage files executable
0.156
- highlight scheduled jobs with dispatch problems (due to constraints)

View File

@@ -4512,6 +4512,8 @@ def get_binary_file(apiurl, prj, repo, arch,
where = package or '_repository'
u = makeurl(apiurl, ['build', prj, repo, arch, where, filename])
download(u, target_filename, progress_obj, target_mtime)
if target_filename.endswith('.AppImage'):
os.chmod(target_filename, 0o755)
def dgst_from_string(str):
# Python 2.5 depracates the md5 modules