Good morning,
netpbm-free does not tag minor releases, the version number for
https://svn.code.sf.net/p/netpbm/code/advanced/ can be found in
version.mk. Also documentation (which is unversioned) and source live in
separate svn repositories.
uscan cannot handle this (parse out version number from a http-served
page, use it for versioning but generate the tarballs with subversion.)
So I have ended ups scripting it with
X8----------------------------debian/updatewatchfile
#!/bin/sh
set -e
if which wget > /dev/null ; then
httpsdump="wget --quiet -O-"
elif which curl > /dev/null ; then
httpsdump="curl --silent"
else
echo neither wget nor curl found
exit 1
fi
latest=$(export \
$($httpsdump https://svn.code.sf.net/p/netpbm/code/advanced/version.mk |\
grep '^NETPBM_[A-Z]*_RELEASE *= *[0-9][[0-9]*$' |\
sed -e 's/[[:space:]]\+//g'); \
printf '%02d.%02d.%02d\n' $NETPBM_MAJOR_RELEASE $NETPBM_MINOR_RELEASE $NETPBM_POINT_RELEASE)
echo found $latest
if test -e debian/watch.in ; then
sed -e "s/@LATESTADVANCED@/$latest/g" \
< debian/watch.in \
> debian/watch
else
echo debian/watch.in not found
exit 1
fi
X8----------------------------
and
X8----------------------------debian/watch.in
version=4
opts="mode=svn,pgpmode=none,uversionmangle=s/.*/@LATESTADVANCED@/" \
https://svn.code.sf.net/p/netpbm/code/advanced/ \
HEAD ignore
# userguide is unversioned
opts="mode=svn, pgpmode=none, \
component=userguide" \
https://svn.code.sf.net/p/netpbm/code/userguide/ \
HEAD ignore
X8----------------------------
And I *manually* run debian/updatewatchfile, followed by uscan --rename.
Which works fine on trixie ...
| uscan info: Upstream URL(+tag) to download is identified as https://svn.code.sf.net/p/netpbm/code/advanced/
| uscan info: Filename (filenamemangled) for downloaded file: netpbm-free-11.13.03.tar.xz
| Newest version of netpbm-free on remote site is 11.13.03, ignore local version
[...]
| Newest version of userguide on remote site is 0.0~svn5161, ignore local version
| uscan info: Downloading upstream package: userguide
but fails to update the userguide component in sid:
| uscan info: Upstream URL(+tag) to download is identified as https://svn.code.sf.net/p/netpbm/code/advanced/
| uscan info: Filename (filenamemangled) for downloaded file: netpbm-free-11.13.03.tar.xz
| Newest version of netpbm-free on remote site is 0.0~svn5164, local version is 11.13.00
| => Newer package available from:
| => https://svn.code.sf.net/p/netpbm/code/advanced/
[...]
| uscan info: Parsing component: userguide
| uscan info: Parsing mode: svn
| uscan info: Parsing pgpmode: none
| uscan info: Last orig.tar.* tarball version (from debian/changelog): 11.13.00
| uscan info: Last orig.tar.* tarball version (dversionmangled): 11.13.00
| uscan info: uscan parser results:
| $base = https://svn.code.sf.net/p/netpbm/code/userguide/
| $filepattern = HEAD
| $newfile = https://svn.code.sf.net/p/netpbm/code/userguide/
| $mangled_newversion = 0.0~svn5161
| $newversion = 0.0~svn5161
| $lastversion = 11.13.00
| uscan info: Upstream URL(+tag) to download is identified as https://svn.code.sf.net/p/netpbm/code/userguide/
| uscan info: Filename (filenamemangled) for downloaded file: netpbm-free-0.0~svn5161.tar.xz
| uscan info: Newest version of userguide on remote site is 0.0~svn5161, local version is 11.13.00
| uscan info: => Only older package available from:
| => https://svn.code.sf.net/p/netpbm/code/userguide/
cu Andreas