[Pkg-javascript-devel] New uscan features

Xavier yadd at debian.org
Fri Mar 27 12:49:08 GMT 2020


Hi all,

if you want to test new uscan (not yet accepted and released), I
compiled it here: https://people.debian.org/~yadd/devscripts/

To use it, change your debian/watch like this
 * main package should be "group"
 * each components should have in their "opts":
    component=foo,ctype=nodejs
 * each component should be "ckecksum" instead of "group"
See [1] for an example

Explanation:
 * checksum avoid having long versions (ie 1.0+~2.1+~0.1+~...) but
   groups all component in a checksum: 1.0+~cs12.4.32
 * ctype=nodejs permits to read current component version in
   package.json since it is no more available in long version

You can update or repack using `uscan --download-current-version`: a new
version is built using the same components.
That's exactly what I did to repack acorn from
6.2.1+ds+~0.4.0+~4.0.0+really4.0.0+~1.0.0+~5.0.1+ds+~1.7.0+ds+~0.1.1+~0.3.1+~0.2.0+~0.1.0+~0.3.0+~0.3.0-14
to 6.2.1+ds+~cs11.24.3-1 (nothing else than updating debian/watch and
launch uscan)

Cheers,
Xavier

[1] https://salsa.debian.org/js-team/acorn/-/blob/master/debian/watch



More information about the Pkg-javascript-devel mailing list