On Sat, 2008-09-06 at 19:59 +0100, Adam D. Barratt wrote:
> On Sat, 2008-09-06 at 20:13 +0200, Thomas Weber wrote:
> > Package: devscripts
> > Version: 2.10.35
> > Severity: normal
> > 
> > I give all options I'm using, in case it matters:
> > ================================================================================
> > $ uscan --no-conf --download --no-symlink --upstream-version=3.0.1 
> >   --watchfile=/tmp/watchfile --package=octave
> 
> The options do indeed matter - the exit status is correct if you let
> uscan search for debian/watch rather than specifying the watchfile
> yourself.
> 
> > I attach a patch that fixes this thing for me, but you'd better check
> > this carefully. Watchfile attached.
> 
> Thanks for the patch, it was nearly perfect :) It should be "exit
> ($found ? 0 : 1);" as $found contains the number of new upstream
> versions found, which can be more than one.

and the exit status is therefore 1 if $found is 0 and 0 if $found is >=1
(slightly confusing at first, but logical :).

Adam




-- 
To unsubscribe, send mail to [EMAIL PROTECTED]

Reply via email to