On Sat, 2008-06-21 at 13:26 -0500, Raphael Geissert wrote: > If the redirector redirects the request to let's say heanet, the regex used > to > match the href is still: > > (?:(?:http://qa.debian.org)? > \/watch\/sf\.php\/kcheckgmail\/)?kcheckgmail-(.*)\.tar\.gz > > But it would be nice if it also tried to match whatever $response->base > returns. So in case the redirector redirects the request to kent it still > works. > > This feature would be very very useful in case of the redirector and some > other sites that not only redirect to another site, but actually change the > directory structure. > > Attached is a patch adding this feature, together with a HTTP header called > X-uscan-features which is now set to 'enhaced-matching'.
I assume you meant enhanced :-) Unfortunately the new functionality only appears to work for href matching, not downloading. For example: uscan.pl debug: matching pattern(s) (?:(?:http://qa.debian.org)?\/watch\/sf\.php\/ffmpeg\-php\/)?ffmpeg-php-(.*)\.tbz2 (?:(?:http://www.mirrorservice.org)?\/sites\/download\.sourceforge\.net\/pub\/sourceforge\/f\/ff\/ffmpeg\-php\/)?ffmpeg-php-(.*)\.tbz2 -- Found the following matching hrefs: /sites/download.sourceforge.net/pub/sourceforge/f/ff/ffmpeg-php/ffmpeg-php-0.4.2.1.tbz2 [...] /sites/download.sourceforge.net/pub/sourceforge/f/ff/ffmpeg-php/ffmpeg-php-0.5.3.tbz2 Newest version on remote site is 0.5.3.1, local version is 0 => Newer version available from http://qa.debian.org/sites/download.sourceforge.net/pub/sourceforge/f/ff/ffmpeg-php/ffmpeg-php-0.5.3.1.tbz2 -- Downloading updated package ffmpeg-php-0.5.3.1.tbz2 uscan.pl debug: requesting URL http://qa.debian.org/sites/download.sourceforge.net/pub/sourceforge/f/ff/ffmpeg-php/ffmpeg-php-0.5.3.1.tbz2 uscan.pl warning: Downloading http://qa.debian.org/sites/download.sourceforge.net/pub/sourceforge/f/ff/ffmpeg-php/ffmpeg-php-0.5.3.1.tbz2 failed: 404 Not Found Regards, Adam -- To unsubscribe, send mail to [EMAIL PROTECTED]
