[Pkg-giraffe-maintainers] Z-push watch file no longer effective
Carsten Schoenert
c.schoenert at t-online.de
Sat Apr 28 09:36:02 BST 2018
Hello Roel,
On 4/26/18 9:57 AM, Roel van Meer wrote:
> Roel van Meer writes:
>
>> I'm not sure how to handle this. Any ideas what to do?
>
> I just found out that uscan has a git mode. Awesome! I think I'll be able to
> work out how that works.
that's something I didn't now until now, cool. :)
kopano-webapp-plugin-files is also only available on a stash.kopano.io
on a Bitbucket based Git VCS that makes it hard to track updated version
by uscan.
I simply took your watch file and changed the link to the git tree and
got some information about available versions. But I need to mangle the
Debian version, otherwise it isn't helpful.
> $ cat debian/watch
> version=4
>
> opts="mode=git, \
> uversionmangle=s/(\d)[_\.\-\+]?((RC|rc|pre|dev|beta|alpha)\.?\d*)$/$1~$2/" \
> https://stash.kopano.io/scm/kwa/files.git \
> refs/tags/(\d+\.\d+\.\d)
> $ uscan --no-download --verbose
> uscan info: uscan (version 2.18.1) See uscan(1) for help
> uscan info: Scan watch files in .
> uscan info: Check debian/watch and debian/changelog in .
...
> refs/tags/v2.1.2-final ()
> uscan info: Looking at $base = https://stash.kopano.io/scm/kwa/files.git with
> $filepattern = refs/tags/(\d+\.\d+\.\d) found
> $newfile = HEAD
> $newversion = which is newer than
> $lastversion = 2.1.2+dfsg1
> uscan info: Upstream URL(+tag) to download is identified as https://stash.kopano.io/scm/kwa/files.git HEAD
> uscan info: Filename (filenamemangled) for downloaded file: kopano-webapp-plugin-files-.tar.xz
> uscan info: Newest version of kopano-webapp-plugin-files on remote site is , local version is 2.1.2+dfsg1
> uscan info: => Only older package available from
> https://stash.kopano.io/scm/kwa/files.git HEAD
> uscan info: Scan finished
I'm still not familiar enough with Perl regular expression so I'm
struggling with the needed line for 'dversionmangle=$foo'
For kopano-webapp I use 'dversionmangle=s/\+dfsg(\.?\d+)?$//" \' which
works fine there but not for kopano-webapp-plugins-files. The suffix to
remove is both for the two packages (dfsg*$). Do you have time to figure
how the correct syntax would be?
BTW: Current version for the watch file is 4, you might want to change
this in preparation for further versions.
--
Regards
Carsten
More information about the Pkg-giraffe-maintainers
mailing list