Package: devscripts
Version: 2.10.10
Severity: important
File: /usr/bin/uscan
Dear maintainers,
there is a bug in uscan, that it can't parse HTMLised version of ftp
directory listing (over proxy). Variable name is missing before regexp
mathing operator.
--- uscan.orig 2007-10-30 17:27:44.000000000 +0100
+++ uscan 2007-10-30 17:38:52.000000000 +0100
@@ -874,7 +874,7 @@
# We separate out HTMLised listings from standard listings, so
# that we can target our search correctly
- if (/<\s*a\s+[^>]*href/i) {
+ if ($content =~ /<\s*a\s+[^>]*href/i) {
while ($content =~
m/(?:<\s*a\s+[^>]*href\s*=\s*\")($pattern)\"/gi) {
my $file = $1;
Without this fix:
[EMAIL PROTECTED]:~/deb/ustr/ustr-1.0.1$ /tmp/uscan.orig --debug
-- Scanning for watchfiles in .
-- Found watchfile in ./debian
-- In debian/watch, processing watchfile line:
ftp://ftp.and.org/pub/james/ustr/(\d+(?:\.\d+)*)/ustr-(\d+(?:\.\d+)*)\.tar\.gz
uscan.orig debug: dir=>/pub/james/ustr/ dirpattern=>(\d+(?:\.\d+)*)
uscan.orig debug: requesting URL ftp://ftp.and.org/pub/james/ustr/
uscan.orig debug: received content:
<HTML>
<HEAD><TITLE>FTP directory</TITLE>
<BASE href="ftp://ftp.and.org/pub/james/ustr/">
</HEAD><BODY>
<H1>Directory of <A
href="ftp://ftp.and.org/pub/james/ustr/">ftp://ftp.and.org/pub/james/ustr/</A></H1>
<HR><PRE>
<A href="..">Parent Directory</A>
d 4096 Jun 24 23:30 <A href="0.99.3/">0.99.3/</A>
d 4096 Jul 13 17:12 <A href="1.0.0/">1.0.0/</A>
d 4096 Aug 04 05:22 <A href="1.0.1/">1.0.1/</A>
d 4096 Oct 30 00:36 <A href="1.0.2/">1.0.2/</A>
1074 Oct 30 00:21 <A href="NEWS">NEWS</A>
l 4 Jun 24 23:36 <A href="README">README</A> -> NEWS
l 5 Oct 30 00:32 <A href="latest">latest</A> -> 1.0.2
l 11 Jun 24 23:36 <A href="rpms">rpms</A> -> latest/rpms
</PRE><HR>
</BODY></HTML>
[End of received content]
uscan.orig debug: matching pattern (\d+(?:\.\d+)*)
-- Found the following matching dirs:
1.0.2
uscan.orig debug: newest_dir => '1.0.2'
uscan.orig debug: requesting URL ftp://ftp.and.org/pub/james/ustr/1.0.2/
uscan.orig debug: received content:
<HTML>
<HEAD><TITLE>FTP directory</TITLE>
<BASE href="ftp://ftp.and.org/pub/james/ustr/1.0.2/">
</HEAD><BODY>
<H1>Directory of <A
href="ftp://ftp.and.org/pub/james/ustr/1.0.2/">ftp://ftp.and.org/pub/james/ustr/1.0.2/</A></H1>
<HR><PRE>
<A href="..">Parent Directory</A>
d 4096 Oct 30 00:36 <A href="rpms/">rpms/</A>
220373 Oct 30 00:36 <A
href="ustr-1.0.2.tar.bz2">ustr-1.0.2.tar.bz2</A>
281119 Oct 30 00:36 <A href="ustr-1.0.2.tar.gz">ustr-1.0.2.tar.gz</A>
</PRE><HR>
</BODY></HTML>
[End of received content]
uscan.orig debug: matching pattern
(?:(?:ftp://ftp.and.org)?\/pub\/james\/ustr\/1\.0\.2\/)?ustr-(\d+(?:\.\d+)*)\.tar\.gz
uscan.orig warning: In debian/watch no matching files for watch line
ftp://ftp.and.org/pub/james/ustr/(\d+(?:\.\d+)*)/ustr-(\d+(?:\.\d+)*)\.tar\.gz
-- Scan finished
[EMAIL PROTECTED]:~/deb/ustr/ustr-1.0.1$
Fixed version:
[EMAIL PROTECTED]:~/deb/ustr/ustr-1.0.1$ /tmp/uscan --debug
-- Scanning for watchfiles in .
-- Found watchfile in ./debian
-- In debian/watch, processing watchfile line:
ftp://ftp.and.org/pub/james/ustr/(\d+(?:\.\d+)*)/ustr-(\d+(?:\.\d+)*)\.tar\.gz
uscan debug: dir=>/pub/james/ustr/ dirpattern=>(\d+(?:\.\d+)*)
uscan debug: requesting URL ftp://ftp.and.org/pub/james/ustr/
uscan debug: received content:
<HTML>
<HEAD><TITLE>FTP directory</TITLE>
<BASE href="ftp://ftp.and.org/pub/james/ustr/">
</HEAD><BODY>
<H1>Directory of <A
href="ftp://ftp.and.org/pub/james/ustr/">ftp://ftp.and.org/pub/james/ustr/</A></H1>
<HR><PRE>
<A href="..">Parent Directory</A>
d 4096 Jun 24 23:30 <A href="0.99.3/">0.99.3/</A>
d 4096 Jul 13 17:12 <A href="1.0.0/">1.0.0/</A>
d 4096 Aug 04 05:22 <A href="1.0.1/">1.0.1/</A>
d 4096 Oct 30 00:36 <A href="1.0.2/">1.0.2/</A>
1074 Oct 30 00:21 <A href="NEWS">NEWS</A>
l 4 Jun 24 23:36 <A href="README">README</A> -> NEWS
l 5 Oct 30 00:32 <A href="latest">latest</A> -> 1.0.2
l 11 Jun 24 23:36 <A href="rpms">rpms</A> -> latest/rpms
</PRE><HR>
</BODY></HTML>
[End of received content]
uscan debug: matching pattern (\d+(?:\.\d+)*)
-- Found the following matching dirs:
1.0.2
uscan debug: newest_dir => '1.0.2'
uscan debug: requesting URL ftp://ftp.and.org/pub/james/ustr/1.0.2/
uscan debug: received content:
<HTML>
<HEAD><TITLE>FTP directory</TITLE>
<BASE href="ftp://ftp.and.org/pub/james/ustr/1.0.2/">
</HEAD><BODY>
<H1>Directory of <A
href="ftp://ftp.and.org/pub/james/ustr/1.0.2/">ftp://ftp.and.org/pub/james/ustr/1.0.2/</A></H1>
<HR><PRE>
<A href="..">Parent Directory</A>
d 4096 Oct 30 00:36 <A href="rpms/">rpms/</A>
220373 Oct 30 00:36 <A
href="ustr-1.0.2.tar.bz2">ustr-1.0.2.tar.bz2</A>
281119 Oct 30 00:36 <A href="ustr-1.0.2.tar.gz">ustr-1.0.2.tar.gz</A>
</PRE><HR>
</BODY></HTML>
[End of received content]
uscan debug: matching pattern
(?:(?:ftp://ftp.and.org)?\/pub\/james\/ustr\/1\.0\.2\/)?ustr-(\d+(?:\.\d+)*)\.tar\.gz
-- Found the following matching files:
ustr-1.0.2.tar.gz
Newest version on remote site is 1.0.2, local version is 1.0.1
=> ustr-1.0.2.tar.gz already in package directory
-- Scan finished
[EMAIL PROTECTED]:~/deb/ustr/ustr-1.0.1$
-- System Information:
Debian Release: lenny/sid
APT prefers unstable
APT policy: (500, 'unstable')
Architecture: i386 (i686)
Kernel: Linux 2.6.18-5-xen-686 (SMP w/1 CPU core)
Locale: LANG=C, LC_CTYPE=cs_CZ.ISO-8859-2 (charmap=ISO-8859-2)
Shell: /bin/sh linked to /bin/bash
Versions of packages devscripts depends on:
ii debianutils 2.26 Miscellaneous utilities specific t
ii dpkg-dev 1.14.7 package building tools for Debian
ii libc6 2.6.1-6 GNU C Library: Shared libraries
ii perl 5.8.8-11.1 Larry Wall's Practical Extraction
ii sed 4.1.5-4 The GNU sed stream editor
Versions of packages devscripts recommends:
ii fakeroot 1.8.2 Gives a fake root environment
-- no debconf information
--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]