Skip to content

Commit

Permalink
getbinaries: make .AppImage files executable
Browse files Browse the repository at this point in the history
shouldn't be a security issue, since they are always in subdirectories
  • Loading branch information
adrianschroeter committed Feb 27, 2017
1 parent df8e7d2 commit cf656e3
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions NEWS
Original file line number Diff line number Diff line change
@@ -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)
Expand Down
2 changes: 2 additions & 0 deletions osc/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit cf656e3

Please sign in to comment.