]> git.pld-linux.org Git - projects/distfiles.git/commitdiff
- forg logs
authorMichal Moskal <michal@moskal.me>
Tue, 27 May 2003 02:24:55 +0000 (02:24 +0000)
committercvs2git <feedback@pld-linux.org>
Thu, 29 Nov 2012 22:58:14 +0000 (22:58 +0000)
Changed files:
    file-fetcher.pl -> 1.8

file-fetcher.pl

index 44b4952ed733bec2777fe3373e275a1f5a899ff6..8061d5bfc651405096b10025613770c9b1114f59 100644 (file)
@@ -98,6 +98,17 @@ sub move_file($$)
     } else {
       $problems .= "ERROR: cannot write $path.desc\n";
     }
+    
+    # Forg logs
+    $md5 =~ /^(..)/ and my $m2 = $1;
+    $md5 =~ /^(.)(.)/;
+    if (open(L, ">> $ENV{HOME}/.lists/lista_$m2")) {
+      print L "/home/ftp/pub/Linux/distfiles/by-md5/$1/$2/$md5/";
+      $url =~ /\/([^\/]+)$/;
+      print L "$1\n";
+      close(L);
+    }
+    
     $normal_out .= "STORED: $url ($md5, " .  (-s $path) . " bytes)\n";
     $fetched_count++;
   }
This page took 0.091986 seconds and 4 git commands to generate.