#1032224 pkg-perl-tools: Behaves weirdly if there are two different upstream tags for the same version

#1032224#5
Date:
2023-03-02 00:03:04 UTC
From:
To:
The upstream of dhcpy3d accidentially tagged the 1.2.3 release as both
"v1.2.3" and "1.2.3" without "v".

My debian/gbp.conf says clearly:

  [DEFAULT]
  upstream-vcs-tag=v%(version)s

Nevertheless "dpt import-orig" on the 1.2.2 git checkout fails as
follows:

% dpt import-orig

Git remote 'upstream-repo'
==========================
I: Found Git remote 'upstream-repo':
* remote upstream-repo
  Fetch URL: https://github.com/HenriWahl/dhcpy6d.git
  Push  URL: https://github.com/HenriWahl/dhcpy6d.git
  HEAD branch: master
  Remote branches:
    1.0.x                                     tracked
    bullseye_client                           tracked
    except-interface                          tracked
    fix_sqlite_packaging                      tracked
    inject_dynamic_prefix                     tracked
    master                                    tracked
    snyk-fix-2e7d9c151fe0a1f229cfcd6b76a2c5d9 tracked
  Local ref configured for 'git push':
    master pushes to master (local out of date)
From https://github.com/HenriWahl/dhcpy6d
 * [new tag]         v1.2.3                -> v1.2.3
 * [new tag]         1.2.3                 -> 1.2.3

gbp pull
========
gbp:info: Fetching from default remote for each branch
gbp:info: Branch 'master' is already up to date.
gbp:info: Branch 'upstream' is already up to date.
gbp:info: Branch 'pristine-tar' is already up to date.

gbp import-orig
===============
gbp:info: Launching uscan...
Newest version of dhcpy6d on remote site is 1.2.3, local version is 1.2.2
 => Newer package available from:
        => https://github.com/HenriWahl/dhcpy6d/archive/refs/tags/1.2.3.tar.gz
Leaving ../dhcpy6d_1.2.3.orig.tar.gz where it isgbp:info: Using uscan downloaded tarball ../dhcpy6d_1.2.3.orig.tar.gz
gbp:info: Importing '../dhcpy6d_1.2.3.orig.tar.gz' to branch 'upstream' (filtering out ['.gitignore', 'debian/*', '.git/*', '.git'])...
gbp:info: Source package is dhcpy6d
gbp:info: Upstream version is 1.2.3
gbp:error: Import of ../dhcpy6d_1.2.3.orig.tar.gz failed: Can't find upstream vcs tag at '1.2.3
v1.2.3'

Note that weird line break between "'1.2.3" and "v1.2.3'".

Temporarily worked around it by running "git tag -d 1.2.3" in a second
shell in the right moment. :-)

#1032224#10
Date:
2023-03-02 22:26:56 UTC
From:
To:
dpt-import-orig doesn't know about gbp.conf - but maybe it should …

That's really a nice little corner case :)

(`| head -n 1' after the grep over the tag names? Not very elegant …)

Heh :)


Cheers,
gregor

#1032224#15
Date:
2026-01-10 10:08:33 UTC
From:
To:
Es gibt eine Familienspende in Höhe von 1.850.000,00 USD von Cheng Charlie
Saephan. Bitte antworten Sie für weitere Informationen. Denken Sie daran,
Ihrer Familie und den Bedürftigen in Ihrer Umgebung Gutes zu tun.

Dies ist bereits der zweite Versuch, Sie zu erreichen. Bitte antworten Sie
für weitere Details.

#1032224#20
Date:
2026-01-10 10:08:33 UTC
From:
To:
Es gibt eine Familienspende in Höhe von 1.850.000,00 USD von Cheng Charlie
Saephan. Bitte antworten Sie für weitere Informationen. Denken Sie daran,
Ihrer Familie und den Bedürftigen in Ihrer Umgebung Gutes zu tun.

Dies ist bereits der zweite Versuch, Sie zu erreichen. Bitte antworten Sie
für weitere Details.