[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: help welcome



Am / On Fri, 06 Nov 2020 19:13:03 +0100
schrieb / wrote Daniel Leidert <dleidert@debian.org>:

> You packaged a major upstream version change (2.0 in
> Debian vs. 3.0 you packaged). Please don't push your
> changes to the main repository in such a case. 
> ...
> We want to have the tests. That's why we changed to using
> the github sources instead of the gem in many cases
> (debian/watch needs to be adjusted). For cmdparse the
> debian/watch file could look like this:
> 
> version=4
> opts=uversionmangle=s/[_.+-]?(rc|pre|dev|beta|alpha|b|a)/~$1/i,\
> filenamemangle=s%(?:.+/)?v?@ANY_VERSION@(@ARCHIVE_EXT@)%@PACKAGE@-$1$2%
> \ https://github.com/gettalong/cmdparse/releases
> .*/v?@ANY_VERSION@@ARCHIVE_EXT@
> 
> Maybe you want to try this one out and re-import the
> upstream sources so we have the tests.

O.k., learning by doing means doing is learning. So I
decided to start from the beginning to get it all right ;-)

clone salsa-git:
gbp clone --pristine-tar
git@salsa.debian.org:ruby-team/ruby-cmdparse.git
ruby-cmdparse

create a new branch for the major version upgrade to work
on:
git checkout -b debian-3.0.6

Now I want to change the debian watch file to point to the
upstream github-release and then import the new version
from there. But Your line(s) don't work here, because new
releases are not placed on the releases page any more but on
the tags page: https://github.com/gettalong/cmdparse/tags

I found something for this case in man uscan but to make
the change even more challenging the link on the page does
not point to a file like 'cmdparse-1.2.3', but 'REL_1_2_3'.
So either the filenamemangle argument or the url address
must be changed (or both?). 

I tried this and that, but to be honest my perl knowledge
has come to an end here. So any help is welcome!

At the moment my watch file looks like this and uscan finds
no matching files:

version=4
opts=\
dversionmangle=s/\+(debian|dfsg|ds|deb|gh)\d*$//,\
uversionmangle=s/(\d)[_\.\+\-]?(rc|pre|dev|beta|alpha|b|a)/~$1/i,\
filenamemangle=s%(?:.*?)?v?(\d[\d.]*)\.tar\.gz%cmdparse-$1.tar.gz%\
https://github.com/gettalong/cmdparse/tags \
(?:.*?/)?v?(\d[\d.]*)\.tar\.gz debian uupdate

Thanks!

Klaumi


-----
Klaumi Klingsporn
mail: klaumikli@gmx.de
web: www.klaumikli.de

Attachment: pgpHQbom9mkem.pgp
Description: Digitale Signatur von OpenPGP


Reply to: