[Bug 1509702] Re: add-apt-repository adds same repository multiple times

2015-10-26 Thread Sebastien Bacher
Thank you for your bug report, so the issue is not that it adds it several time but that it adds it when you use the command even if the source is already active? Is that correct? (your title suggests it does it by itself if you use it correct, which you description seems to suggest is not the

Re: [Bug 1509702] Re: add-apt-repository adds same repository multiple times

2015-10-26 Thread moma
Re-hi, I made a small fix to the aptsources module (locally on my laptop). Aptsources comes from the python-apt package. $ apt-get source python-apt $ cd python-apt-1.0.1build1/ $ cd aptsources/ # Edit sourceslist.py file. # Add a make_unique(self, l) function to the SourcesList class. # Then

[Bug 1509702] Re: add-apt-repository adds same repository multiple times

2015-10-26 Thread moma
BTW: The --remove option empties both the repository file and its backup copy. But the empty files remains in /etc/apt/sources.list.d/ folder. Is this correct? # Our repository files. $ ls -l /etc/apt/sources.list.d/ -rw-r--r-- 1 root root 207 Out 26 15:41

[Bug 1509702] Re: add-apt-repository adds same repository multiple times

2015-10-26 Thread moma
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

[Bug 1509702] Re: add-apt-repository adds same repository multiple times

2015-10-25 Thread moma
Screenshot: http://bildr.no/view/ZktOZDRI -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1509702 Title: add-apt-repository adds same repository multiple times To manage notifications about this bug