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

Re: uscan roadmap



On 01/12/2021 22:16, Yadd wrote:
On 01/12/2021 21:07, Patrice wrote:

Really great!
And could the new uscan read a watch file from version 3/4/5 and output a
version 5 of it by its own (in-place or stdout)?
uscan --standardize
:-)

Yes but without optimization neither scheme (except some few fields). Example:

   version=4

   opts=uversionmangle=s/-/~/g,pgpmode=none \
    https://... ; .*(\d[\d\.]*)@ARCHIVE_EXT@

will be translated into:

   Version: 5

   Source: https://...
   Regex: .*(\d[\d\.]*)@ARCHIVE_EXT@
   Uversionmangle: s/-/~/g

You'll have to manually modify it into

   Version: 5
   Scheme: stable

   Source: https://...

Done, uscan from https://salsa.debian.org/debian/devscripts/-/merge_requests/251 is already:

 * natively working with watchFiles version 5
 * able to read old versions transparently (using a wrapper)
 * able to convert files from version 3/4 to 5 (using the same
   wrapper), and probably versions 1/2 (not fully tested):

     uscan --update-watchfile

   Don't us it for now except for tests, key names will probably change

Looking at test results: no regression, all passed


Reply to: