Merge lp:~philip-peitsch/quickly/apport-src-package-support into lp:quickly
Status: | Rejected | ||||
---|---|---|---|---|---|
Rejected by: | Didier Roche-Tolomelli | ||||
Proposed branch: | lp:~philip-peitsch/quickly/apport-src-package-support | ||||
Merge into: | lp:quickly | ||||
Prerequisite: | lp:~philip-peitsch/quickly/lpi-src-package-support | ||||
Diff against target: |
53 lines (+32/-2) 2 files modified
data/templates/ubuntu-application/internal/bin/ubuntu-bug (+27/-0) data/templates/ubuntu-application/run.py (+5/-2) |
||||
To merge this branch: | bzr merge lp:~philip-peitsch/quickly/apport-src-package-support | ||||
Related bugs: |
|
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Didier Roche-Tolomelli | Needs Information | ||
Review via email: mp+21311@code.launchpad.net |
Description of the change
This patch creates a bin folder that is placed on the path as part of the template's run command. Inside this bin folder is an ubuntu-bug facade (fake) that simply pops up a dialog informing the user that apport integration is successful.
After looking at apport, it became quite clear that apport depends heavily a package being installed. I couldn't see any easy patches to add the functionality, and hit upon the idea of wrapping ubuntu-bug directly instead.
This is dependent on changes made to the lpi-src-
Unmerged revisions
- 450. By Philip Peitsch
-
Fixing mis-spelling in pop-up dialog
- 449. By Philip Peitsch
-
Moving ubuntu-bug from bin to internal/bin to better hide it from the outside
- 448. By Philip Peitsch
-
Splitting bin directory out of template root
- 447. By Philip Peitsch
-
Fixing path addition to add template directory to path
- 446. By Philip Peitsch
-
Rebasing from lpi-src changes
- 445. By Philip Peitsch
-
Adding override to quickly run command to set the LPI_PACKAGE_FILE env variable so launchpad-
integration will work even if the package isn't installed - 444. By Philip Peitsch
-
Merging trunk
- 443. By Philip Peitsch
-
Making quickly respect PYTHOPATH overrides internally
Hum, no so fan of that, but I guess we have no other choice :/
1- I would prefer having it in internal/bin of the template and not in bin/ as this dir doesn't exist*and we want it to be "internal" (as it's only available when you run quickly run, right?).
2- Sucessful -> Successful :)
3- I think sys.path.append will be better than new_env['PATH'] or sys.putenv(). IIRC, there is one which doesn't work with subprocess. You can have a look and quickly/commands.py (the launch() function IIRC)
Or, the more long-term support will be to track/add in launchpad integration some callback return to know if reporting the bug has been successfull or not (maybe not for this release, but for next one
Hope that will help!
I didn't know about this Prerequisite function of merge review! Sweet!