#683638 add-apt-repository adds invalid deb line if the rep contains a -

#683638#5
Date:
2012-08-02 12:49:21 UTC
From:
To:
  STEPS TO REPRODUCE:
  1. Add the PPA that contains a slash and minus with add-apt-repository:
  $ sudo add-apt-repository ppa:deluge-team/ppa
  2. Removing the PPA with ppa-purge:
  $ sudo ppa-purge ppa:deluge-team/ppa
  3. Again, add the PPA with add-apt-repository:
  $ sudo add-apt-repository ppa:deluge-team/ppa

  RESULT:
  The file '/etc/apt/sources.list.d/deluge-team-ppa-natty.list' now
contains an invalid third line that says 'ain':

  $ cat /etc/apt/sources.list.d/deluge-team-ppa-natty.list
  deb http://ppa.launchpad.net/deluge-team/ppa/ubuntu natty main
  deb-src http://ppa.launchpad.net/deluge-team/ppa/ubuntu natty main
  ain

  Bug confirmed by 17 users:
https://bugs.launchpad.net/ubuntu/+source/software-properties/+bug/789859

#683638#10
Date:
2012-10-18 14:12:38 UTC
From:
To:
AFAIK, all repositories, even those not affected by this bug, have a slash
(/).
So this bug affects only reps with a dash (-) in its name.

Anybody working on this?

#683638#17
Date:
2012-12-12 03:49:06 UTC
From:
To:
This bug appears to be filed against a version that does not exist in
debian. The current latest version in sid is 0.82.7.1. I was unable to
reproduce the bug using this version, so the problem may be specific
to Ubuntu.


Regards,