~ddstreet/ubuntu/+source/python-apt:work

Last commit made on 2020-05-20
Get this branch:
git clone -b work https://git.launchpad.net/~ddstreet/ubuntu/+source/python-apt
Only Dan Streetman can upload to this branch. If you are Dan Streetman please log in for upload directions.

Branch merges

Branch information

Recent commits

5af7ed4... by Dan Streetman

fix pycodestyle complaints

8b75d08... by Dan Streetman

tests: update test_aptsources

8db3bfe... by Dan Streetman

sourceslist: remove SourcesList.__find()

This function is no longer needed.

05f5f38... by Dan Streetman

sourceslist: add remove param to SourcesList.save()

Any files in the list that have all their entries removed from the list
will be completely ignored during save(), instead of overwriting and/or
removing the file.

The current SoftwareProperties code works around this problem by
adding an empty (invalid) SourceEntry whenever it detects that it
is removing the final SourceEntry for a file.

This does not change the default behavior, so the new action of removing
files will only happen for callers that set remove=True.

80e4062... by Dan Streetman

sourceslist: change SourcesList.add() to use CollapsedSourcesList

69c475f... by Dan Streetman

sourceslist: add MergedSourceEntry class

56e7beb... by Dan Streetman

sourceslist: add CollapsedSourcesList class

940b79c... by Dan Streetman

sourceslist: add __eq__ and __len__ functions to SourcesList

680ae51... by Dan Streetman

sourceslist: implement copy(SourceEntry) and SourceEntry._replace()

ed103fb... by Dan Streetman

sourceslist: clarify SourceEntry.__eq__() implementation

The check for equality needs to check the options fields as well as
correctly comparing the comps fields.

Also, an invalid SourceEntry should only equal another invalid entry
if their lines are equal.