[mirrorbrain-commits] r8358 - /trunk/tools/scanner.pl

From: <poeml_at_mirrorbrain.org>
Date: Sun, 02 Feb 2014 12:27:39 -0000
Author: poeml
Date: Sun Feb  2 13:27:39 2014
New Revision: 8358

URL: http://svn.mirrorbrain.org/viewvc/mirrorbrain?rev=8358&view=rev
Log:
scanner:
- when FTP URLs are not correct, and the directory is not found on an
  FTP server, the scanner bailed out. Fixed with patch from Dago. (issue #139)

Modified:
    trunk/tools/scanner.pl

Modified: trunk/tools/scanner.pl
URL: http://svn.mirrorbrain.org/viewvc/mirrorbrain/trunk/tools/scanner.pl?rev=8358&r1=8357&r2=8358&view=diff
==============================================================================
--- trunk/tools/scanner.pl	(original)
+++ trunk/tools/scanner.pl	Sun Feb  2 13:27:39 2014
_at_@ -775,7 +775,7 @@
   return unless defined $ftp;
   my $text = ftp_cont($ftp, "$url/$name");
 
-  if(!ref($text) && \$text =~ m/^(\d\d\d)\s/) {	# some FTP status code? Not good.
+  if(!ref($text) && $text =~ m/^(\d\d\d)\s/) {	# some FTP status code? Not good.
 
     # Bug: Net::FTP wrongly reports timeouts (421) as code 550:
     # sunsite.informatik.rwth-aachen.de: ftp dir: ftp://sunsite.informatik.rwth-aachen.de/pub/linux/opensuse/distribution/11.0/repo/debug/suse/i686




_______________________________________________
mirrorbrain-commits mailing list
Archive: http://mirrorbrain.org/archive/mirrorbrain-commits/

Note: To remove yourself from this list, send a mail with the content
 	unsubscribe
to the address mirrorbrain-commits-request_at_mirrorbrain.org
Received on Sun Feb 02 2014 - 12:27:41 GMT

This archive was generated by hypermail 2.3.0 : Sun Feb 02 2014 - 12:32:03 GMT