Merge lp:~james-w/pkgme-devportal/executable-executables into lp:pkgme-devportal
Status: | Merged |
---|---|
Approved by: | James Westby |
Approved revision: | 126 |
Merged at revision: | 125 |
Proposed branch: | lp:~james-w/pkgme-devportal/executable-executables |
Merge into: | lp:pkgme-devportal |
Diff against target: |
251 lines (+99/-26) 3 files modified
devportalbinary/binary.py (+34/-11) devportalbinary/metadata.py (+11/-10) devportalbinary/tests/test_binary.py (+54/-5) |
To merge this branch: | bzr merge lp:~james-w/pkgme-devportal/executable-executables |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Jonathan Lange | Approve | ||
Review via email: mp+124803@code.launchpad.net |
Commit message
Make executables executable.
The executable may not be marked exectuable (e.g. if it was delivered
in a .zip), so we also consider any ELF executables as candidate exectuables.
That will make it more likely we find the right thing, but it won't be
enough to actually make that file exectuable. Therefore we override
dh_fixperms to chmod the file at build time so it will be installed correctly.
We also tell dh_fixperms to not adjust anything in /opt so that it doesn't
remove any needed exectuable bits.
Description of the change
Hi,
This tries to make executable handling more robust and lenient.
It should now work for things delivered as zip files, and will also
do a better job at making sure that any executables stay executable.
It also fixes another instance of the package name bug.
The branch is a bit messy, sorry. I couldn't think of any changes to
make the code more sensible though.
Thanks,
James
Looks good. The only thing I'd consider changing is making the "special casing" a bit less special by making it a loop or something similar.