Comment 4 for bug 1509702

Revision history for this message
moma (osmoma) wrote :

The add-apt-repository command adds always a new "deb-src" line no matter if the source is enabled or disabled.

Example:
$ cat /etc/apt/sources.list.d/audio-recorder-ubuntu-ppa-wily.list

deb http://ppa.launchpad.net/audio-recorder/ppa/ubuntu wily main
deb-src http://ppa.launchpad.net/audio-recorder/ppa/ubuntu wily main
------
$ sudo add-apt-repository ppa:audio-recorder/ppa

$ cat /etc/apt/sources.list.d/audio-recorder-ubuntu-ppa-wily.list

deb http://ppa.launchpad.net/audio-recorder/ppa/ubuntu wily main
# deb-src http://ppa.launchpad.net/audio-recorder/ppa/ubuntu wily main
deb-src http://ppa.launchpad.net/audio-recorder/ppa/ubuntu wily main
------

$ sudo add-apt-repository ppa:audio-recorder/ppa

$ cat /etc/apt/sources.list.d/audio-recorder-ubuntu-ppa-wily.list

deb http://ppa.launchpad.net/audio-recorder/ppa/ubuntu wily main
# deb-src http://ppa.launchpad.net/audio-recorder/ppa/ubuntu wily main
# deb-src http://ppa.launchpad.net/audio-recorder/ppa/ubuntu wily main
deb-src http://ppa.launchpad.net/audio-recorder/ppa/ubuntu wily main
------
It seems like the "deb" lines are treated correctly while "deb-src" lines are duplicated.

The [Remove]-button in the GUI (software-properties-gtk) works fine. It removes all extra lines.