Skip to content
Snippets Groups Projects
Commit 741b43a6 authored by Emanuele Aina's avatar Emanuele Aina
Browse files

pkg-merge-upstream-to-downstreams: Python 3.7 (v2021) compatibility


Try to be compatible tiwh Python 3.7 as shipped in Buster so the tool
can work on projects where the default branch points to v2021, either
because it's been dropped from v2022 or because it's a downstream that
has not started mirroring v2022 yet.

      File "/usr/bin/apertis-pkg-merge-upstream-to-downstreams", line 65, in ensure_downstream_branch
        project_id = urllib.parse.quote(url.path.strip("/").removesuffix(".git"), safe="")
    AttributeError: 'str' object has no attribute 'removesuffix'

Signed-off-by: Emanuele Aina's avatarEmanuele Aina <emanuele.aina@collabora.com>
parent 1a18980f
No related branches found
No related tags found
1 merge request!239v2021 ← v2022dev3 backports: pkg-merge-upstream-to-downstreams fixes
Pipeline #281472 passed
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment