]> git.pld-linux.org Git - projects/distfiles.git/commitdiff
- fixed sprintf with commands that contain % char
authorsparky <sparky@pld-linux.org>
Fri, 23 Sep 2011 13:36:33 +0000 (13:36 +0000)
committercvs2git <feedback@pld-linux.org>
Thu, 29 Nov 2012 22:58:17 +0000 (22:58 +0000)
Changed files:
    file-fetcher.pl -> 1.58

file-fetcher.pl

index 772fad9ecab31151aa77b188163b3032cb0534db..a9a760c40831ef109bc9d2e777103e266c787ef1 100644 (file)
@@ -264,7 +264,8 @@ sub fetch_file($$)
     $problems .= "$cmd:\n$out\n\n";
   }
   if ( $? ) {
-    $problems .= sprintf "$cmd:\nexited with code %d (0x%02x)\n\n",
+    $problems .= sprintf "%s:\nexited with code %d (0x%02x)\n\n",
+      $cmd,
       $? >> 8,
       $? & 0xff;
   }
@@ -281,7 +282,8 @@ sub fetch_file($$)
       $problems .= "$cmd2:\n$out\n\n";
     }
     if ( $? ) {
-      $problems .= sprintf "$cmd2:\nexited with code %d (0x%02x)\n\n",
+      $problems .= sprintf "%s:\nexited with code %d (0x%02x)\n\n",
+        $cmd2,
         $? >> 8,
         $? & 0xff;
     }
This page took 0.075632 seconds and 4 git commands to generate.