admin: distfiles/file-fetcher.pl - fixed sprintf with commands that contain...

sparky sparky at pld-linux.org
Fri Sep 23 15:36:39 CEST 2011


Author: sparky                       Date: Fri Sep 23 13:36:39 2011 GMT
Module: admin                         Tag: HEAD
---- Log message:
- fixed sprintf with commands that contain % char

---- Files affected:
admin/distfiles:
   file-fetcher.pl (1.57 -> 1.58) 

---- Diffs:

================================================================
Index: admin/distfiles/file-fetcher.pl
diff -u admin/distfiles/file-fetcher.pl:1.57 admin/distfiles/file-fetcher.pl:1.58
--- admin/distfiles/file-fetcher.pl:1.57	Wed Mar 30 20:14:55 2011
+++ admin/distfiles/file-fetcher.pl	Fri Sep 23 15:36:33 2011
@@ -264,7 +264,8 @@
     $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 @@
       $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;
     }
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/admin/distfiles/file-fetcher.pl?r1=1.57&r2=1.58&f=u



More information about the pld-cvs-commit mailing list