Package: git-buildpackage Version: 0.9.22 Severity: normal Tags: patch User: ubuntu-de...@lists.ubuntu.com Usertags: origin-ubuntu hirsute ubuntu-patch
Hi, git-buildpackage FTBFS in Ubuntu because the dch tests have an incorrect /etc/os-release check. It looks for the ID as "Ubuntu," while it's populated as "ubuntu" (lowercase) in Ubuntu. In Ubuntu, the attached patch was applied to achieve the following: * tests/11_test_dch_main.py: Fix OS release check for Ubuntu. Thanks for considering the patch. Logan
diff -Nru git-buildpackage-0.9.22/tests/11_test_dch_main.py git-buildpackage-0.9.22ubuntu1/tests/11_test_dch_main.py --- git-buildpackage-0.9.22/tests/11_test_dch_main.py 2021-01-27 04:45:11.000000000 -0500 +++ git-buildpackage-0.9.22ubuntu1/tests/11_test_dch_main.py 2021-02-20 22:30:30.000000000 -0500 @@ -18,7 +18,7 @@ os_release = OsReleaseFile() # OS release codename and snapshot of version 0.9-2~1 -if os_release['ID'] == 'Ubuntu': +if os_release['ID'] == 'ubuntu': os_codename = os_release['UBUNTU_CODENAME'] snap_header_0_9 = r'^test-package\s\(0.9-1ubuntu1~1\.gbp([0-9a-f]{6})\)\sUNRELEASED;\surgency=%s' % default_urgency new_version_0_9 = '0.9-1ubuntu1'