~racb/git-ubuntu:fix_derive_codename_from_series.3

Last commit made on 2019-08-05
Get this branch:
git clone -b fix_derive_codename_from_series.3 https://git.launchpad.net/~racb/git-ubuntu
Only Robie Basak can upload to this branch. If you are Robie Basak please log in for upload directions.

Branch merges

Branch information

Name:
fix_derive_codename_from_series.3
Repository:
lp:~racb/git-ubuntu

Recent commits

34438ed... by Robie Basak

fixup! source_information: Fix ubuntu series

Drop xfail now that the bug is fixed

8de1927... by Robie Basak

fixup! source_information: Add tests for

Assert is a statement

848498f... by Robie Basak

fixup! source_information: Add tests for

Import required module collections

25798e9... by Robie Basak

fixup! source_information: Add tests for

Drop unrelated whitespace additions

1b3aa47... by Bryce Harrington

source_information: Document derive_codename_from_series()

ef1e86f... by Bryce Harrington

source_information: Fix ubuntu series lookup

Corrects an issue found by coverity:

  usd-importer/gitubuntu/source_information.py:107:
    copy_paste_error: "u_ddi" in "_ddi.codename" looks like a copy-paste error.
  usd-importer/gitubuntu/source_information.py:107:
    remediation: Should it say "u_udi" instead?

The code is erroneously using the Debian implementation of codename(),
which translates aliases ('unstable', 'testing', etc.) to the release
codenames ('sid', 'buster', etc.) Fortunately, if it doesn't match
anything it just returns the release name passed to it, which is exactly
what the Ubuntu implementation of codename() does.

Thus, even though the code is incorrect, it's behavior will always be
correct in practice. Thus this fix corrects a purely theoretical
problem, not one that would produce invalid behavior.

4239910... by Bryce Harrington

source_information: Add tests for derive_codename_from_series()

Provide a set of test cases for source_information's
derive_codename_from_series() routine.

The first two test cases check ordinary usage, simple codename->codename
and alias->codename lookups (i.e. 'bionic'->'bionic', and
'unstable'->'sid' respectively). The third test checks that invalid
input triggers an exception as expected. These three tests depend on
the external distro-info and distro-info-data packages.

The last test provides a mock of the DebianDistroInfo class that
includes stricter input checking for its codename() routine. This test
case identifies a code error in derive_codename_from_series() that was
found via Coverity.

b279439... by Andreas Hasenack

blacklist linux-oem (~150Mb large source package)

0a289d3... by Andreas Hasenack

Update the Debian keyring package

74529d5... by Andreas Hasenack

Import zeromq3