apt-add-repository --remove acts if it adds a repository even though it doesn't

Bug #1007973 reported by frogsoncrazid
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
software-properties (Ubuntu)
Fix Released
Low
Unassigned

Bug Description

When I run "apt-add-repository --remove" it prompts, that it's adding given repository - which is obviously not the expected behaviour - after the process has ended, the repository is gone - as expected.

===Here is the command lin in su===

KOXI07-MINT fk # apt-add-repository ppa:nemequ/sqlheavy --remove
You are about to add the following PPA to your system:
 SQLHeavy
 Official PPA for SQLHeavy.
 More info: https://launchpad.net/~nemequ/+archive/sqlheavy
Press [ENTER] to continue or ctrl-c to cancel adding it

KOXI07-MINT fk # apt-add-repository --remove ppa:nemequ/sqlheavy
You are about to add the following PPA to your system:
 SQLHeavy
 Official PPA for SQLHeavy.
 More info: https://launchpad.net/~nemequ/+archive/sqlheavy
Press [ENTER] to continue or ctrl-c to cancel adding it

Error: 'deb http://ppa.launchpad.net/nemequ/sqlheavy/ubuntu lisa main' doesn't exist in a sourcelist file

===Extra data, asked for===
KOXI07-MINT fk # lsb_release -rd
Description: Linux Mint 12 Lisa
Release: 12

KOXI07-MINT fk # apt-cache policy software-properties-common
software-properties-common:
  Installed: 0.81.13.4
  Candidate: 0.81.13.4
  Version table:
 *** 0.81.13.4 0
        500 http://archive.ubuntu.com/ubuntu/ oneiric-updates/main i386 Packages
        100 /var/lib/dpkg/status
     0.81.13.3 0
        500 http://security.ubuntu.com/ubuntu/ oneiric-security/main i386 Packages
     0.81.10 0
        500 http://archive.ubuntu.com/ubuntu/ oneiric/main i386 Packages

Revision history for this message
Matt Fischer (mfisch) wrote :

I was unable to confirm that in my version:

ii python-software-properties 0.82.7.1 manage the repositories that you install software from
ii software-properties-common 0.82.7.1 manage the repositories that you install software from (common)

mfisch@caprica:~$ sudo apt-add-repository ppa:foo/ppa --remove
You are about to remove the following PPA from your system:

 More info: https://launchpad.net/~foo/+archive/ppa
Press [ENTER] to continue or ctrl-c to cancel removing it

mfisch@caprica:~$

Changed in software-properties (Ubuntu):
status: New → Confirmed
status: Confirmed → New
Revision history for this message
Matt Fischer (mfisch) wrote :

Judging from the bzr changelogs, this was fixed in commit 84, which corresponds to version software-properties (0.82). Please upgrade and try the newer version.

Changed in software-properties (Ubuntu):
importance: Undecided → Low
status: New → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.