let `uscan --debug` print mangled uversions

Benjamin Drung bdrung at debian.org
Wed Mar 20 13:18:19 UTC 2013


Hi,

Am Donnerstag, den 07.03.2013, 20:57 +0100 schrieb Markus Wanner:
> Hi,
> 
> fiddling with the watch file for 'asio', I recently found myself wanting
> to check my uversionmangle pattern. However, uscan --debug didn't show
> me the effects of my regexp.
> 
> With the attached simple patch, uscan lists the mangled version
> determined from the upstream file (in braces). Provided on a "works for
> me" basis, not much testing performed.

I am fine with your patch except the output format. There is a cluttered
column with the mangled version:

$ uscan --verbose
-- Scanning for watchfiles in .
-- Found watchfile in ./debian
-- In debian/watch, processing watchfile line:
   opts="uversionmangle=s/-beta//;s/\.?rc/~rc/"   http://code.google.com/p/audacity/downloads/list?can=1&num=1000   .*/audacity-minsrc-(.+)\.tar\.bz2
-- Found the following matching hrefs:
     //audacity.googlecode.com/files/audacity-minsrc-1.3.10.tar.bz2	(1.3.10)
     //audacity.googlecode.com/files/audacity-minsrc-1.3.11.tar.bz2	(1.3.11)
     //audacity.googlecode.com/files/audacity-minsrc-1.3.12-beta.tar.bz2	(1.3.12)
     //audacity.googlecode.com/files/audacity-minsrc-1.3.13-beta.tar.bz2	(1.3.13)
     //audacity.googlecode.com/files/audacity-minsrc-1.3.14-beta.tar.bz2	(1.3.14)
     //audacity.googlecode.com/files/audacity-minsrc-1.3.7.tar.bz2	(1.3.7)
     //audacity.googlecode.com/files/audacity-minsrc-1.3.8.tar.bz2	(1.3.8)
     //audacity.googlecode.com/files/audacity-minsrc-1.3.9.tar.bz2	(1.3.9)
     //audacity.googlecode.com/files/audacity-minsrc-2.0.0.tar.bz2	(2.0.0)
     //audacity.googlecode.com/files/audacity-minsrc-2.0.1.tar.bz2	(2.0.1)
     //audacity.googlecode.com/files/audacity-minsrc-2.0.2.tar.bz2	(2.0.2)
Newest version on remote site is 2.0.2, local version is 2.0.3
 => remote site does not even have current version
-- Scan finished

I played with the format and put it at the beginning (patch attached):

$ uscan --verbose
-- Scanning for watchfiles in .
-- Found watchfile in ./debian
-- In debian/watch, processing watchfile line:
   opts="uversionmangle=s/-beta//;s/\.?rc/~rc/"   http://code.google.com/p/audacity/downloads/list?can=1&num=1000   .*/audacity-minsrc-(.+)\.tar\.bz2
-- Found the following matching hrefs:
   1.3.10	//audacity.googlecode.com/files/audacity-minsrc-1.3.10.tar.bz2
   1.3.11	//audacity.googlecode.com/files/audacity-minsrc-1.3.11.tar.bz2
   1.3.12	//audacity.googlecode.com/files/audacity-minsrc-1.3.12-beta.tar.bz2
   1.3.13	//audacity.googlecode.com/files/audacity-minsrc-1.3.13-beta.tar.bz2
   1.3.14	//audacity.googlecode.com/files/audacity-minsrc-1.3.14-beta.tar.bz2
   1.3.7	//audacity.googlecode.com/files/audacity-minsrc-1.3.7.tar.bz2
   1.3.8	//audacity.googlecode.com/files/audacity-minsrc-1.3.8.tar.bz2
   1.3.9	//audacity.googlecode.com/files/audacity-minsrc-1.3.9.tar.bz2
   2.0.0	//audacity.googlecode.com/files/audacity-minsrc-2.0.0.tar.bz2
   2.0.1	//audacity.googlecode.com/files/audacity-minsrc-2.0.1.tar.bz2
   2.0.2	//audacity.googlecode.com/files/audacity-minsrc-2.0.2.tar.bz2
Newest version on remote site is 2.0.2, local version is 2.0.3
 => remote site does not even have current version
-- Scan finished

I am not happy with this format either. Any other opinions about the format?

-- 
Benjamin Drung
Debian & Ubuntu Developer
-------------- next part --------------
A non-text attachment was scrubbed...
Name: uscan-verbose.patch
Type: text/x-patch
Size: 1779 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/devscripts-devel/attachments/20130320/a16f7a9a/attachment.bin>


More information about the devscripts-devel mailing list