Debian Patches

Status for git-ubuntu/1.2-4

Patch Description Author Forwarded Bugs Origin Last update
test-call-dch-with-vendor-Ubuntu-in-reconstruct-changelog.patch test: call dch with --vendor=Ubuntu in reconstruct-changelog
test_reconstruct_changelog fails on Debian unstable:

```
__________________________ test_reconstruct_changelog __________________________

pygit2_repo = pygit2.Repository('/tmp/tmp5ktk68oo/.git/')
monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7b447f19f2f0>

@pytest.mark.skipif(
ENTRY_POINT_TYPE is None,
reason="Entry point testing not available",
)
def test_reconstruct_changelog(pygit2_repo, monkeypatch):
'''The reconstruct-changelog endpoint should add the expected commit'''
monkeypatch.setenv('DEBFULLNAME', 'Test User')
monkeypatch.setenv('DEBEMAIL', 'test@example.com')
Repo(
commits=[
Commit(tree=SourceTree(Source()), name='root'),
Commit(
tree=SourceTree(Source(spec=SourceSpec(mutate=1))),
message=' * Test changelog entry',
name='child',
parents=[Placeholder('root')],
),
],
tags={'root': Placeholder('root'), 'child': Placeholder('child')},
).write(pygit2_repo)
pygit2_repo.checkout('refs/tags/child')
subprocess.check_call(
[get_entry_point('reconstruct-changelog'), 'HEAD^'],
cwd=pygit2_repo.workdir,
)
with open(os.path.join(pygit2_repo.workdir, 'debian/changelog'), 'r') as f:
changelog_lines = f.read().splitlines()
> assert changelog_lines[0:4] == [
'source-builder-package (1-1ubuntu1) UNRELEASED; urgency=medium',
'',
' * Test changelog entry',
'',
]
E AssertionError: assert ['source-buil...ngelog entry'] == ['source-buil...og entry', '']
E
E At index 0 diff: 'source-builder-package (1-1.1) UNRELEASED; urgency=medium' != 'source-builder-package (1-1ubuntu1) UNRELEASED; urgency=medium'
E Use -v to get more diff

gitubuntu/integration_test.py:226: AssertionError
Benjamin Drung <benjamin.drung@canonical.com> no 2024-07-03
submit-fix-setting-commitish_string.patch submit: fix setting commitish_string
pylint complains:

```
************* Module gitubuntu.submit
gitubuntu/submit.py:138:53: E0606: Possibly using variable 'commitish_string' before assignment (possibly-used-before-assignment)
```
Benjamin Drung <benjamin.drung@canonical.com> yes 2024-07-03
test-Always-set-ENTRY_POINT_DIR.patch test: Always set ENTRY_POINT_DIR
pylint complains:

```
************* Module gitubuntu.integration_test
gitubuntu/integration_test.py:77:26: E0606: Possibly using variable 'ENTRY_POINT_DIR' before assignment (possibly-used-before-assignment)
```

So always set `ENTRY_POINT_DIR` even when this variable is not used when
`ENTRY_POINT_TYPE` is `None`.
Benjamin Drung <benjamin.drung@canonical.com> yes 2024-07-03
maintainer-field.patch diff --git a/gitubuntu/source_builder.py b/gitubuntu/source_builder.py
index c26aa34..1c6e2f4 100644
no
Correct-illegal-shebang-line.patch Correct illegal shebang line
self-test has two shebang parameters, which is illegal. Drop --noprofile
which is only default for login shells, which this is probably not.
Bastian Germann <bage@debian.org> no 2026-06-07
skip-failing-tests-git-config-missing.patch Skip failing tests (git config missing) Bastian Germann <bage@debian.org> no 2026-06-07
replace-pkg-resources.patch fix: replace pkg_resources by importlib.resources Jonas Jelten <jj@sft.lol> no debian upstream, https://git.launchpad.net/git-ubuntu/commit/?id=5d7c57de21e29d6da379dd9f85297db984a06680 2026-04-01
setup.py-add-install-dependency-on-distro-info.patch setup.py: add install dependency on distro-info
gitubuntu/build.py imports distro_info. This has been fixed in upstream
commit 62353596635 ("source_information: download sources via launchpadlib").
Benjamin Drung <bdrung@debian.org> not-needed 2026-10-14
source_information-recognize-Debian-experimental-again.patch source_information: recognize Debian experimental again
distro-info-data 0.73 renamed Debian's experimental entry to its
codename rc-buggy, so distro-info no longer accepts "experimental" and
derive_source_from_series() raised for changelogs targeting it.

Handle the suite name explicitly, and drop derive_codename_from_series(),
which had no callers left and whose tests made the package fail to build
(Debian bug #1143312).
Jonas Jelten <jj@sft.lol> no upstream, https://git.launchpad.net/git-ubuntu/commit/?id=e33c80f252ffdb05ec3df1cf2b81fd5366aece56 2026-09-24

All known versions for source package 'git-ubuntu'

Links