Closed
Bug 760377
Opened 13 years ago
Closed 13 years ago
Let the installer return the installation folder and let consumers call get_binary() on their own
Categories
(Testing :: Mozbase, defect)
Testing
Mozbase
Tracking
(Not tracked)
RESOLVED
FIXED
People
(Reporter: whimboo, Assigned: whimboo)
References
Details
Attachments
(1 file)
One thing we need for the uninstaller is the folder which contains the installed application. Right now we do a bit of magic guessing because we only have the binary path, which current gets returned by the installer.
Instead the installer should return the installation folder and consumers should call get_binary() on their own to get the path of the binary. That way consumers can remember the installation path and pass it into the uninstaller. No magic guessing would be necessary anymore.
Be aware that this will change the API and we have to inform everyone who is making use of mozinstall. It should happen at least via the tools mailing list.
Steps to do:
1. Remove apps keyword argument from install() method
2. Make apps argument mandatory for get_binary() method so no magic guessing has to be done
3. Let the installer return the installation folder
4. Update the uninstaller to handle the installation folder instead of binary
Clint and Jeff, what do you both think about? IMHO such a change should happen before more test harnesses make use of mozinstall and a good time to make it a good API would be now.
Comment 2•13 years ago
|
||
(In reply to Clint Talbert ( :ctalbert ) from comment #1)
> Sounds like a good and worthy API change to me.
>
> Let's do it.
wfm
Assignee | ||
Comment 3•13 years ago
|
||
Pointer to Github pull-request
Assignee | ||
Comment 4•13 years ago
|
||
Comment on attachment 630732 [details]
Patch
This patch implements the above items we agreed on.
Attachment #630732 -
Attachment description: Pointer to Github pull request: https://github.com/mozilla/mozbase/pull/19 → Patch
Attachment #630732 -
Flags: review?(jhammel)
Comment 5•13 years ago
|
||
Comment on attachment 630732 [details]
Patch
Looks good!
Attachment #630732 -
Flags: review?(jhammel) → review+
Assignee | ||
Comment 6•13 years ago
|
||
Status: ASSIGNED → RESOLVED
Closed: 13 years ago
Resolution: --- → FIXED
You need to log in
before you can comment on or make changes to this bug.
Description
•