[Pkg-giraffe-discuss] debian/watch and debain version mangling
Carsten Schoenert
c.schoenert at t-online.de
Mon Oct 2 13:09:31 UTC 2017
Am 02.10.2017 um 13:29 schrieb Carsten Schoenert:
...
> Someone with more Perl experience can give some light in here?
I got it working now, but it was more a try and error. At least a comma
and a backslash was missing and probably other things like correct
intention.
> $ git diff debian/watch
> diff --git a/debian/watch b/debian/watch
> index 719b9b5..65eafd9 100644
> --- a/debian/watch
> +++ b/debian/watch
> @@ -12,7 +12,8 @@
> # pgpsigurlmangle=s/archive\/(\d\S+)\.tar\.gz/releases\/download\/$1\/$1\.tar\.gz\.asc/ \
> # ...
>
> -version=3
> +version=4
>
> -opts=uversionmangle=s/(\d)[_\.\-\+]?((RC|.RC|.RC.|rc|.rc|.rc.|pre|dev|beta|alpha)\d*)$/$1~$2/ \
> - https://github.com/Kopano-mirror/kopano-webapp/tags .*/v(\d\S+)\.tar\.gz
> +opts=uversionmangle=s/(\d)[_\.\-\+]?((RC|.RC|.RC.|rc|.rc|.rc.|pre|dev|beta|alpha)\d*)$/$1~$2/,\
> +dversionmangle=s/\+(debian|dfsg|ds|deb)(\.?\d+)?$// \
> +https://github.com/Kopano-mirror/kopano-webapp/tags .*/v(\d\S+)\.tar\.gz
This brings now that output.
> $ uscan --no-download
> uscan: Newest version of kopano-webapp on remote site is 3.4.0-beta.1, local version is 3.3.1+dfsg1
> (mangled local version is 3.3.1)
> uscan: => Newer package available from
> https://github.com/Kopano-mirror/kopano-webapp/archive/v3.4.0-beta.1.tar.gz
--
Regards
Carsten Schoenert
More information about the Pkg-giraffe-discuss
mailing list