add-apt-repository doesn't add ppa if file with comments exists
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
software-properties (Ubuntu) |
Fix Released
|
Medium
|
Unassigned |
Bug Description
add-apt-repository fails to add a ppa if the file for the ppa already exists with the deb entries commented out. Besides this, it doesn't print any error message and returns success (0).
One way to reproduce it is as follows:
- Add PPA to sources
$ sudo add-apt-repository -y ppa:javier.
$ cat /etc/apt/
deb http://
deb-src http://
- Remove PPA from sources
$ sudo ppa-purge ppa:javier.
$ cat /etc/apt/
# deb http://
# deb-src http://
- Add again PPA to sources
$ sudo add-apt-repository -y ppa:javier.
Executing: gpg --ignore-
gpg: requesting key CF31078F from hkp server keyserver.
gpg: key CF31078F: "Launchpad PPA for Javier Collado" not changed
gpg: Total number processed: 1
gpg: unchanged: 1
- PPA wasn't really added
$ cat /etc/apt/
# deb http://
# deb-src http://
Related branches
- Colin Watson: Approve
- Sami Jaktholm (community): Needs Resubmitting
-
Diff: 22 lines (+3/-2)1 file modifiedsoftwareproperties/ppa.py (+3/-2)
Changed in software-properties (Ubuntu): | |
importance: | Undecided → Medium |
Status changed to 'Confirmed' because the bug affects multiple users.