Author: adsb
Date: 2009-01-02 18:20:50 +0000 (Fri, 02 Jan 2009)
New Revision: 1773

Modified:
   trunk/debian/changelog
   trunk/scripts/uscan.pl
Log:
uscan: Improve parsing of non-HTMLised FTP directory listings so that
"foobar.tar.gz" doesn't match a request for "bar.tar.gz".

Modified: trunk/debian/changelog
===================================================================
--- trunk/debian/changelog      2009-01-02 18:18:58 UTC (rev 1772)
+++ trunk/debian/changelog      2009-01-02 18:20:50 UTC (rev 1773)
@@ -22,6 +22,8 @@
       settings.
   * licensecheck: Add .cs (C# source files) to the default list of files to
     check. (Closes: #508163)
+  * uscan: Improve parsing of non-HTMLised FTP directory listings so that
+    "foobar.tar.gz" doesn't match a request for "bar.tar.gz".
   * conf.default.in:
     + Use the new reportbug.debian.org as an example SMTP host for bts
       rather than bugs.debian.org.

Modified: trunk/scripts/uscan.pl
===================================================================
--- trunk/scripts/uscan.pl      2009-01-02 18:18:58 UTC (rev 1772)
+++ trunk/scripts/uscan.pl      2009-01-02 18:20:50 UTC (rev 1773)
@@ -985,7 +985,7 @@
        } else {
            # they all look like:
            # info info ... info filename [ -> linkname]
-           while ($content =~ m/($filepattern)(\s+->\s+\S+)?$/mg) {
+           while ($content =~ m/\s($filepattern)(\s+->\s+\S+)?$/mg) {
                my $file = $1;
                my $mangled_version = join(".", $file =~ m/^$filepattern$/);
                foreach my $pat (@{$options{'uversionmangle'}}) {



-- 
To unsubscribe, send mail to [email protected].

Reply via email to