Package: git-buildpackage
Version: 0.9.32
Severity: normal

Dear Maintainer,

import-orig with a URL (not ending in .zip, but not sure if this is
relevant): gbp tries to use "tar" and fails uncompressing.

For example:
-------
carles@pinux:[debian/unstable]~/git/debian/python-cloudscraper$ gbp import-orig 
--verbose 
https://codeload.github.com/VeNoMouS/cloudscraper/zip/refs/heads/master
gbp:debug: ['git', 'rev-parse', '--show-cdup']
gbp:debug: ['git', 'rev-parse', '--is-bare-repository']
gbp:debug: ['git', 'rev-parse', '--git-dir']
gbp:debug: ['git', 'for-each-ref', '--format=%(refname:short)', 'refs/heads/']
gbp:debug: ['git', 'show-ref', '--verify', 'refs/heads/upstream']
gbp:debug: ['git', 'status', '--porcelain']
What is the upstream version? [] 1.2.71-git20230426.cbb3c0ea
gbp:debug: ['git', 'tag', '-l', 'upstream/1.2.71-git20230426.cbb3c0ea']
gbp:debug: tar ['-C', '../tmpntq62qy5', '-a', '-xf', '../master'] []
tar: This does not look like a tar archive
tar: Skipping to next header
tar: Exiting with failure status due to previous errors
gbp:error: Couldn't unpack '../master': it exited with 2
-------

There is a workaround: download the file and then use gbp import-orig
from the downloaded file (in my case named as .zip).

-- System Information:
Debian Release: 12.2
  APT prefers stable-security
  APT policy: (500, 'stable-security'), (500, 'stable')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 6.1.0-13-amd64 (SMP w/4 CPU threads; PREEMPT)
Kernel taint flags: TAINT_OOT_MODULE, TAINT_UNSIGNED_MODULE
Locale: LANG=ca_ES.UTF-8, LC_CTYPE=ca_ES.UTF-8 (charmap=UTF-8), LANGUAGE not set
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Versions of packages git-buildpackage depends on:
ii  devscripts             2.23.4
ii  git                    1:2.39.2-1.1
ii  man-db                 2.11.2-2
ii  python3                3.11.2-1+b1
ii  python3-dateutil       2.8.2-2
ii  python3-pkg-resources  66.1.1-1
ii  python3-yaml           6.0-3+b2
ii  sensible-utils         0.0.17+nmu1

Versions of packages git-buildpackage recommends:
ii  pristine-tar      1.50
ii  python3-requests  2.28.1+dfsg-1
ii  sbuild            0.85.0

Versions of packages git-buildpackage suggests:
pn  python3-notify2  <none>
ii  sudo             1.9.13p3-1+deb12u1
ii  unzip            6.0-28

-- no debconf information

Reply via email to