]> git.pld-linux.org Git - projects/distfiles.git/commitdiff
- yet another test
authorMichal Moskal <michal@moskal.me>
Tue, 27 May 2003 13:53:44 +0000 (13:53 +0000)
committercvs2git <feedback@pld-linux.org>
Thu, 29 Nov 2012 22:58:14 +0000 (22:58 +0000)
Changed files:
    specparser.pl -> 1.6

specparser.pl

index 5c867283f72a6e3f5acc1906401fe42f981d7381..7467e155d18b65e0d65831e4ac28ffe2d02e753d 100644 (file)
@@ -76,7 +76,11 @@ sub print_md5($)
         my $s = $macro{"source_$1"};
        if ($s =~ /^([a-z0-9A-Z:\+\~\.\-\/_]|\%[0-9])+$/) {
          if ($s =~ /^(ftp|http):\/\//) {
-            print "$md5 $s\n";
+           if ($s =~ /\/$/) {
+             print "ERROR: $_[0]: source $no ($s) is directory\n";
+           } else {
+              print "$md5 $s\n";
+           }
          } else {
            print "ERROR: $_[0]: source $no ($s) isn't http/ftp url\n";
          }
This page took 0.027513 seconds and 4 git commands to generate.