Merge lp:~andrea.corbellini/software-properties/fix-621977-1 into lp:software-properties
Status: | Merged |
---|---|
Merged at revision: | 825 |
Proposed branch: | lp:~andrea.corbellini/software-properties/fix-621977-1 |
Merge into: | lp:software-properties |
Diff against target: |
130 lines (+41/-9) 3 files modified
add-apt-repository (+4/-1) softwareproperties/SoftwareProperties.py (+33/-5) tests/test_dbus.py (+4/-3) |
To merge this branch: | bzr merge lp:~andrea.corbellini/software-properties/fix-621977-1 |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Michael Terry | Approve | ||
Review via email: mp+139919@code.launchpad.net |
Description of the change
This is an updated version of my previous merge proposal:
https:/
This branch fixes bug #621977 in the following way:
1. deb-src lines are added, but commented out, so that Software Properties still lets you enable them later;
2. a new -s, --enable-source command line option is added so that you can add uncommented deb-src line with a single command;
Also:
3. when removing a source entry, all related deb-src lines are automatically removed.
I fixed the tests to work with the new code. test_dbus.
The point #3 (automatically remove deb-src entries) is required to do a "clean" job by default. Having deb-src lines without correspective deb lines makes sense, however it doesn't make much sense in most situations.
It'd be useful to expose via the DBus API the new parameters enable_source_code (of add_source_
This was already approved before. Still looks good and works fine for me.