add-apt-repository should write to a new file in /etc/apt/sources.list.d/ rather than /etc/apt/source.list

Bug #503905 reported by Adam Nelson
12
This bug affects 2 people
Affects Status Importance Assigned to Milestone
software-properties (Ubuntu)
Confirmed
Low
Unassigned

Bug Description

Package: python-software-properties
Release: 9.10 karmic-update

Expected: When running "sudo add-apt-repository "deb http://us.archive.ubuntu.com/ubuntu/ karmic multiverse", I expected a new file to be inserted in /etc/apt/sources.list.d/ with the new repository.

What happens: Instead, /etc/apt/source.list was moved to /etc/apt/source.list.save and /etc/apt/source.list was updated.

Typically, if a debian package has configuration changes, they should be in the .d/ directory for management (i.e. if urls are changed in the base installation, etc...)

Revision history for this message
Michael Vogt (mvo) wrote :

What do you think about a option for this? Like --sources-list-file ? The default for PPAs is already a sources.list.d file.

Changed in software-properties (Ubuntu):
status: New → Confirmed
importance: Undecided → Low
Revision history for this message
Adam Nelson (adam-varud) wrote :

I think we could just change the default behavior and not bother with a flag.

If anybody wants to do it the way it is now, it's easy enough to manually edit the source.list file directly.

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.