`apt-add-repository --remove` doesn't remove deb-src lines
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
software-properties (Ubuntu) |
Confirmed
|
Undecided
|
Unassigned |
Bug Description
With the same <sourceline> argument, the `apt-add-
For example:
$ sudo apt-add-repository ppa:dajhorn/ppa
$ cat /etc/apt/
deb http://
deb-src http://
$ sudo apt-add-repository --remove ppa:dajhorn/ppa
$ cat /etc/apt/
deb-src http://
Notice that the deb-src line persists. The expected behavior is that all lines added by `apt-add-
Furthermore, `apt-add-repository --remove` doesn't handle an explicit deb-src line:
$ apt-add-repository --remove 'deb-src http://
$ echo $?
0
$ cat dajhorn-
deb-src http://
The expected behavior is the deletion of the given deb-src line.
If the <sourceline> argument doesn't exist, then an error message is emitted, but the result code is incorrect:
$ apt-add-repository --remove 'deb-src http://
Error: 'deb-src http://
$ echo $?
0
$ apt-cache policy python-
python-
Installed: 0.76.7
Candidate: 0.76.7
Version table:
*** 0.76.7 0
500 http://
100 /var/lib/
$ lsb_release -rd
Description: Ubuntu 10.10
Release: 10.10
Same problem here. In addition to scenarios mentioned above, "deb-src" occasionally are edited by "add-apt-repository --remove" becoming invalid, beginning with "src". Regards, Dani