Package: devscripts
Version: 2.22.1
Severity: normal
X-Debbugs-Cc: none, Vagrant Cascadian <vagr...@debian.org>
File: /usr/bin/uscan


Using the following watch file where @PACKAGE@ is u-boot:

version=4

opts=dversionmangle=auto,\
     pgpmode=auto,\
     repacksuffix=+dfsg,\
     uversionmangle=s/-rc/~rc/ \
https://ftp.denx.de/pub/@PACKAGE@/ \
@PACKAGE@@ANY_VERSION@@ARCHIVE_EXT@

I get the following:

$ uscan --verbose
uscan info: uscan (version 2.22.1) See uscan(1) for help
uscan info: Scan watch files in .
uscan info: Check debian/watch and debian/changelog in .
uscan info: package="u-boot" version="2022.04+dfsg-1~20220404~0" (as seen in 
debian/changelog)
uscan info: package="u-boot" version="2022.04+dfsg" (no epoch/revision)
uscan info: ./debian/changelog sets package="u-boot" version="2022.04+dfsg"
uscan info: Found upstream signing keyring: debian/upstream/signing-key.asc
uscan info: Process watch file at: debian/watch
    package = u-boot
    version = 2022.04+dfsg
    pkg_dir = .
uscan info: opts: 
dversionmangle=auto,pgpmode=auto,repacksuffix=+dfsg,uversionmangle=s/-rc/~rc/
uscan info: line: https://ftp.denx.de/pub/u-boot/ 
u-boot(?:[-_]?(\d[\-+\.:\~\da-zA-Z]*))(?i)(?:\.(?:tar\.xz|tar\.bz2|tar\.gz|tar\.zstd?|zip|tgz|tbz|txz))
uscan info: Parsing dversionmangle=auto
uscan info: Parsing pgpmode=auto
uscan info: Parsing repacksuffix=+dfsg
uscan info: Parsing uversionmangle=s/-rc/~rc/
uscan info: line: https://ftp.denx.de/pub/u-boot/ 
u-boot(?:[-_]?(\d[\-+\.:\~\da-zA-Z]*))(?i)(?:\.(?:tar\.xz|tar\.bz2|tar\.gz|tar\.zstd?|zip|tgz|tbz|txz))
uscan info: Last orig.tar.* tarball version (from debian/changelog): 
2022.04+dfsg
uscan info: Last orig.tar.* tarball version (dversionmangled): 2022.04
uscan info: Requesting URL:
   https://ftp.denx.de/pub/u-boot/
uscan info: Matching pattern:
   
(?:(?:https://ftp.denx.de)?\/pub\/u\-boot\/)?u-boot(?:[-_]?(\d[\-+\.:\~\da-zA-Z]*))(?i)(?:\.(?:tar\.xz|tar\.bz2|tar\.gz|tar\.zstd?|zip|tgz|tbz|txz))
uscan info: Found the following matching hrefs on the web page (newest first):
   https://ftp.denx.de/pub/u-boot/u-boot-2202.04-rc5.tar.bz2 (2202.04~rc5) 
index=2202.04~rc5-2
   https://ftp.denx.de/pub/u-boot/u-boot-2202.04-rc5.tar.bz2 (2202.04~rc5) 
index=2202.04~rc5-2
   https://ftp.denx.de/pub/u-boot/u-boot-2022.04.tar.bz2 (2022.04) 
index=2022.04-2
   https://ftp.denx.de/pub/u-boot/u-boot-2022.04.tar.bz2 (2022.04) 
index=2022.04-2
   https://ftp.denx.de/pub/u-boot/u-boot-2022.04-rc5.tar.bz2 (2022.04~rc5) 
index=2022.04~rc5-2
   https://ftp.denx.de/pub/u-boot/u-boot-2022.04-rc5.tar.bz2 (2022.04~rc5) 
index=2022.04~rc5-2
   https://ftp.denx.de/pub/u-boot/u-boot-2022.04-rc4.tar.bz2 (2022.04~rc4) 
index=2022.04~rc4-2
   https://ftp.denx.de/pub/u-boot/u-boot-2022.04-rc4.tar.bz2 (2022.04~rc4) 
index=2022.04~rc4-2
...
uscan info: Filename (filenamemangled) for downloaded file: 
u-boot-2202.04-rc5.tar.bz2
uscan: Newest version of u-boot on remote site is 2202.04~rc5, local version is 
2022.04
       (mangled local version is 2022.04)
uscan:  => Newer package available from:
        => https://ftp.denx.de/pub/u-boot/u-boot-2202.04-rc5.tar.bz2

I would expect it to download u-boot-2022.04.tar.bz2... or say it's not
downloading it because it's the same version or whatever.

The upstream site seems to confusingly have two u-boot-2022.04-rc5, not
sure if this is somehow triggering the issue...

Or maybe there is something amiss with my watch file that is not obvious
to me.


Thanks for maintaining devscripts/uscan.


live well,
  vagrant


-- Package-specific info:
--- /etc/devscripts.conf ---
Empty.

--- ~/.devscripts ---
Not present
-- System Information:
Debian Release: bookworm/sid
  APT prefers testing
  APT policy: (500, 'testing'), (1, 'experimental'), (1, 'unstable')
Architecture: arm64 (aarch64)

Kernel: Linux 5.17.0-trunk-arm64 (SMP w/6 CPU threads)
Kernel taint flags: TAINT_CRAP
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.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 devscripts depends on:
ii  dpkg-dev              1.21.2
ii  fakeroot              1.28-1
ii  file                  1:5.41-2
ii  gnupg                 2.2.27-3
ii  gpgv                  2.2.27-3+b1
ii  libc6                 2.33-7
ii  libfile-dirlist-perl  0.05-2
ii  libfile-homedir-perl  1.006-1
ii  libfile-touch-perl    0.12-1
ii  libfile-which-perl    1.23-1
ii  libipc-run-perl       20200505.0-1
ii  libmoo-perl           2.005004-3
ii  libwww-perl           6.61-1
ii  patchutils            0.4.2-1
ii  perl                  5.34.0-3
ii  python3               3.9.8-1
ii  sensible-utils        0.0.17
ii  wdiff                 1.2.2-2+b1

Versions of packages devscripts recommends:
ii  apt                         2.4.4
ii  curl                        7.82.0-2
ii  dctrl-tools                 2.24-3
ii  debian-keyring              2021.12.24
ii  dput                        1.1.0
ii  equivs                      2.3.1
ii  libdistro-info-perl         1.1
ii  libdpkg-perl                1.21.2
ii  libencode-locale-perl       1.05-1.1
ii  libgit-wrapper-perl         0.048-1
ii  libgitlab-api-v4-perl       0.26-1
ii  liblist-compare-perl        0.55-1
ii  liblwp-protocol-https-perl  6.10-1
ii  libsoap-lite-perl           1.27-1
ii  libstring-shellquote-perl   1.04-1
ii  libtry-tiny-perl            0.31-1
ii  liburi-perl                 5.10-1
ii  licensecheck                3.3.0-1
ii  lintian                     2.111.0
ii  man-db                      2.10.2-1
ii  patch                       2.7.6-7
ii  pristine-tar                1.49
ii  python3-apt                 2.3.0+b1
ii  python3-debian              0.1.43
ii  python3-magic               2:0.4.25-1
ii  python3-requests            2.27.1+dfsg-1
ii  python3-unidiff             0.7.3-1
ii  python3-xdg                 0.27-2
ii  strace                      5.10-1
ii  unzip                       6.0-26
ii  wget                        1.21.2-2
ii  xz-utils                    5.2.5-2

Versions of packages devscripts suggests:
pn  adequate                     <none>
pn  at                           <none>
ii  autopkgtest                  5.21
pn  bls-standalone               <none>
ii  build-essential              12.9
pn  check-all-the-things         <none>
pn  cvs-buildpackage             <none>
ii  debhelper                    13.6
pn  diffoscope                   <none>
pn  disorderfs                   <none>
pn  dose-extra                   <none>
pn  duck                         <none>
pn  elpa-devscripts              <none>
pn  faketime                     <none>
pn  gnuplot                      <none>
pn  how-can-i-help               <none>
ii  libauthen-sasl-perl          2.1600-1.1
pn  libdbd-pg-perl               <none>
ii  libfile-desktopentry-perl    0.22-2
pn  libnet-smtps-perl            <none>
pn  libterm-size-perl            <none>
ii  libtimedate-perl             2.3300-2
pn  libyaml-syck-perl            <none>
ii  mailutils [mailx]            1:3.13-1+b1
ii  mmdebstrap                   0.8.6-1
pn  mozilla-devscripts           <none>
pn  mutt                         <none>
ii  openssh-client [ssh-client]  1:8.9p1-3
pn  piuparts                     <none>
pn  postgresql-client            <none>
pn  pristine-lfs                 <none>
ii  quilt                        0.66-2.1
pn  ratt                         <none>
pn  reprotest                    <none>
pn  svn-buildpackage             <none>
ii  w3m                          0.5.3+git20210102-6

-- no debconf information

Attachment: signature.asc
Description: PGP signature

Reply via email to