]> git.pld-linux.org Git - projects/distfiles.git/commitdiff
- debug messages added when doing md5sum
authorsiefca <siefca@pld-linux.org>
Mon, 23 Feb 2004 20:37:40 +0000 (20:37 +0000)
committercvs2git <feedback@pld-linux.org>
Thu, 29 Nov 2012 22:58:15 +0000 (22:58 +0000)
Changed files:
    file-fetcher.pl -> 1.34

file-fetcher.pl

index 9c575aa5506ab1b4fc6a76016ba922ff002265a4..ea8d9bcdd15473c5ab9e19772a2216ec12ffe7b3 100644 (file)
@@ -1,6 +1,8 @@
 #!/usr/bin/perl -w
 #
 
+use IPC::Run qw(run);
+
 $commits_list = "pld-cvs-commit\@pld-linux.org";
 
 $spool_dir = "./spool";
@@ -165,7 +167,17 @@ sub make_src_symlink($$)
 sub md5($)
 {
   my $file = shift;
-  my $md5 = `md5sum "$file" 2>/dev/null`;
+  my $in = "";
+  my $md5 = "";
+  my $err = "";
+  my @cmd = ("md5sum", $file);
+
+  run \@cmd, \$in, \$md5, \$err;
+  if ($err ne "") {
+    chomp($err);
+    $problems .= "       [debug]: " . $err . "\n";
+  }
+  chomp $md5;
   $md5 =~ /^([a-f0-9]{32})/ and $md5 = $1;
   return $md5;
 }
This page took 0.081799 seconds and 4 git commands to generate.