Merge lp:~manishsinha/software-properties/list-ppa-names-for-user-or-team into lp:software-properties
Status: | Merged |
---|---|
Merged at revision: | 727 |
Proposed branch: | lp:~manishsinha/software-properties/list-ppa-names-for-user-or-team |
Merge into: | lp:software-properties |
Diff against target: |
52 lines (+24/-1) 2 files modified
add-apt-repository (+23/-1) softwareproperties/__init__.py (+1/-0) |
To merge this branch: | bzr merge lp:~manishsinha/software-properties/list-ppa-names-for-user-or-team |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Daniel Holbach (community) | Needs Fixing | ||
Review via email: mp+81634@code.launchpad.net |
Commit message
When the PPA name is provided wrong, then via launchpadlib, it is checked if the user or team exists.
If it exists, then notify the user that PPA does not exist.
In case the user/team has a PPA, then list down the PPAs
In case the user/team does not have a PPA, show an message - "The team named 'cheers' does not have any PPA"
Note: Using people.is_team the user passed clearly marked as team or user.
=======
Example error messages:
$ sudo ./add-apt-
Cannot add PPA: 'ppa:mhr3/foo'.
The user named mhr3 has no PPA named foo
Please choose from the following available PPAs:
* test-ppa: Testing PPA
$ sudo ./add-apt-
Cannot add PPA: 'ppa:cheers/foo'.
The team named 'cheers' does not have any PPA
Description of the change
When the PPA name is provided wrong, then via launchpadlib, it is checked if the user or team exists.
If it exists, then notify the user that PPA does not exist.
In case the user/team has a PPA, then list down the PPAs
In case the user/team does not have a PPA, show an message - "The team named 'cheers' does not have any PPA"
Note: Using people.is_team the user passed clearly marked as team or user.
=======
Example error messages:
$ sudo ./add-apt-
Cannot add PPA: 'ppa:mhr3/foo'.
The user named mhr3 has no PPA named foo
Please choose from the following available PPAs:
* test-ppa: Testing PPA
$ sudo ./add-apt-
Cannot add PPA: 'ppa:cheers/foo'.
The team named 'cheers' does not have any PPA
I think this is fine, I just would like to move the code into its own function for easier readability/ testability.