On Fri, Sep 09, 2005 at 11:27:24PM +0200, Tobias Grimm wrote:
> Package: uscan
> Severity: wishlist
> Tags: patch
> 
> If a HREF contains HTML entities (most commonly "&") or no filename can
> be extracted with basename(), uscan fails to download the file.
> 
> I suggest to add a new option "localfilename" which can override
> $newfile_base.
> 
> The patch I've attached, adds this option, so something like this is
> possible:
> 
>     #
>     # HREF=http://foo.bar.org/download/?path=&download=foo-0.1.1.tar.gz
>     #
>     version=4
>     opts=localfilename=s/.*=(.*)/$1/ \
>       http://foo.bar.org/download/ \?path=&download=foo-(.*).tar.gz

Thanks for this suggestion.  I've applied the patch in SVN and it will
be in the next upload of devscripts.

I've made two changes, though: firstly, for consistency, I've called
the option filenamemangle; secondly, since the new watch files are not
actually incompatible with the version 3 ones, in that the only
difference is that the filenames won't be mangled, I haven't bumped
the version number.  (A warning will be issued about an unrecognised
option, of course.)

   Julian


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to