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

file-fetcher.pl

index 979e6ebb7371f47940004832cd664eb83ed029d9..44b4952ed733bec2777fe3373e275a1f5a899ff6 100644 (file)
@@ -90,6 +90,14 @@ sub move_file($$)
   if (system("mv -f \"tmp/$md5\" \"$path\"")) {
     $problems .= "FATAL: cannot mv file ($url)\n";
   } else {
+    if (open(D, "> $path.desc")) {
+      print D "URL: $url\n";
+      print D "MD5: $md5\n";
+      print D 'Fetched-by: $Id$\n';
+      close(D);
+    } else {
+      $problems .= "ERROR: cannot write $path.desc\n";
+    }
     $normal_out .= "STORED: $url ($md5, " .  (-s $path) . " bytes)\n";
     $fetched_count++;
   }
This page took 0.148522 seconds and 4 git commands to generate.