Merge lp:~maxb/bzr/no-install-apport into lp:bzr
Status: | Merged |
---|---|
Approved by: | Martin Pool |
Approved revision: | no longer in the source branch. |
Merged at revision: | 5496 |
Proposed branch: | lp:~maxb/bzr/no-install-apport |
Merge into: | lp:bzr |
Diff against target: |
23 lines (+0/-13) 1 file modified
setup.py (+0/-13) |
To merge this branch: | bzr merge lp:~maxb/bzr/no-install-apport |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Martin Pool | Approve | ||
Review via email: mp+38463@code.launchpad.net |
Commit message
Remove installation of apport configuration from setup.py
Description of the change
I propose that we should not try to install Apport configuration files if setup.py is run as root.
If Bazaar is being built as a Debian/Ubuntu package, this code is not relevant, as setup.py is either executed as normal non-root (in which case it does nothing), or under fakeroot (in which case this causes the install to fail, since it tries to write to the real system).
This code would only be triggered in the eventuality of someone doing something like 'sudo python setup.py install', in which case:
* it's rather unlikely that Apport is even installed
* there's a distinct possibility the install might be run with --prefix or similar options which change installation directories, in which case it's very bad manners for the package to write to /etc or /usr
thanks