#1139899 uscan: silently skips download if a file with the same name exists and uses the local one

Package:
devscripts
Source:
devscripts
Description:
scripts to make the life of a Debian Package maintainer easier
Submitter:
Andreas B. Mundt
Date:
2026-06-13 09:03:02 UTC
Severity:
normal
#1139899#5
Date:
2026-06-13 09:00:53 UTC
From:
To:
Hi,

I use uscan to update upstream from a gitlab instance and repackage
the sources.  When I do this for my package 'filius', I get:

 $ uscan
 Newest version of filius on remote site is 2.12.2, local version is 2.12.1+ds1
        (mangled local version is 2.12.1)
  => Newer package available from:
         => https://gitlab.com/api/v4/projects/18855527/repository/archive.tar.gz?sha=v2.12.2
 Successfully repacked ../archive.tar.gz as ../filius_2.12.2+ds.orig.tar.xz, deleting 531 files from it.

The problem is, an older ../archive.tar.gz (i.e. from the last
upstream release) exists, which is used instead of the version
reported.  This becomes obvious when switching on more vebose
reporting:

 $ uscan -vvv
 ...
 uscan debug: line: download_file_and_sig()
 uscan info: Not downloading, using existing file: archive.tar.gz
 ...

The corresponding watch file can be found on salsa [1].

Best regards,

  Andi


[1] https://salsa.debian.org/java-team/filius
--- /etc/devscripts.conf ---
Empty.
--- ~/.devscripts --- DEBSIGN_KEYID=938A5CEE1E290DE255D9AC98B01FEA84617B586D!