Merge ~nteodosio/software-properties:deb822-apt-add into software-properties:ubuntu/master
Proposed by
Nathan Teodosio
Status: | Merged |
---|---|
Merge reported by: | Nick Rosbrook |
Merged at revision: | 6f27c851e18b31d8da07a048ca2bebdf0b95afad |
Proposed branch: | ~nteodosio/software-properties:deb822-apt-add |
Merge into: | software-properties:ubuntu/master |
Diff against target: |
22 lines (+2/-2) 1 file modified
add-apt-repository (+2/-2) |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Nick Rosbrook | Approve | ||
Review via email: mp+464417@code.launchpad.net |
To post a comment you must log in.
I have two thoughts on this.
First is that I am not positive that by enabling deb822=True, we won't introduce regressions in other parts of the code that are not deb822-aware yet. For that reason, it *might* be safer to re-init sources list with deb822=True in show_list() instead of using self.sourceslist. On the other hand, @juliank did a lot of work on python-apt since I first started writing deb822 support for things, so my concern might be unnecessary.
Second is that current output is a bit awkward with deb822 sources. For example, if I have the default Ubuntu sources on Noble, then I get:
$ add-apt-repository --list us.archive. ubuntu. com/ubuntu/ noble noble-updates noble-backports main restricted universe multiverse security. ubuntu. com/ubuntu noble-security main restricted universe multiverse
deb http://
deb http://
which kind of look like classic .list entries, but are invalid because they specify multiple suites. The same would happen if we had a deb822 source with Types: deb deb-src, or multiple URIs.
If the desire here *is* to list out deb822 sources as classic .list entries, then we need logic to do handle what I described above. Otherwise, I would just leave the print(s), and add a newline between deb822 sources.