add-apt-repository should return exit code and not adding wrong repositories
Bug #496879 reported by
Narcis Garcia
This bug affects 6 people
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
software-properties (Ubuntu) |
Triaged
|
Medium
|
Unassigned |
Bug Description
(Ubuntu 9.10)
Running:
sudo add-apt-repository ppa:xxxxx
echo $?
In most cases zero error is shown, also when repository doesn't exist or there isn't network connection.
Additionally, on both error cases, the repository is added anyway.
Related branches
lp://staging/~evfool/software-properties/miscfixes2
Ready for review
for merging
into
lp://staging/software-properties
- Michael Vogt (community): Needs Information
-
Diff: 455 lines (+143/-105)7 files modifiedadd-apt-repository (+67/-59)
data/gtkbuilder/dialog-add.ui (+11/-36)
softwareproperties/SoftwareProperties.py (+5/-3)
softwareproperties/gtk/SoftwarePropertiesGtk.py (+2/-0)
softwareproperties/ppa.py (+18/-6)
tests/test_aptaddrepo.py (+36/-0)
tests/test_lp.py (+4/-1)
Changed in software-properties (Ubuntu): | |
importance: | Undecided → Wishlist |
status: | Confirmed → Triaged |
Changed in software-properties (Ubuntu): | |
assignee: | nobody → Robert Roth (evfool) |
status: | Triaged → In Progress |
Changed in software-properties (Ubuntu): | |
status: | In Progress → Triaged |
assignee: | Robert Roth (evfool) → nobody |
To post a comment you must log in.
Thank you for taking the time to report this bug and helping to make Ubuntu better. This bug did not have a package associated with it, which is important for ensuring that it gets looked at by the proper developers. You can learn more about finding the right package at https:/ /wiki.ubuntu. com/Bugs/ FindRightPackag e. I have classified this bug as a bug in python- software- properties.
When reporting bugs in the future please use apport, either via the appropriate application's "Help -> Report a Problem" menu or using 'ubuntu-bug' and the name of the package affected. You can learn more about this functionality at https:/ /wiki.ubuntu. com/ReportingBu gs. (you can find out what package a command belongs to with 'dpkg -S $(which <command>)' )