[Pkg-octave-commit] rev 384 - trunk/utils

Rafael Laboissiere rafael at costa.debian.org
Sat Dec 17 07:56:56 UTC 2005


Author: rafael
Date: 2005-12-17 07:56:56 +0000 (Sat, 17 Dec 2005)
New Revision: 384

Modified:
   trunk/utils/svn-commit-version
Log:
Correctly check whether system command is successful before dying


Modified: trunk/utils/svn-commit-version
===================================================================
--- trunk/utils/svn-commit-version	2005-12-17 07:54:56 UTC (rev 383)
+++ trunk/utils/svn-commit-version	2005-12-17 07:56:56 UTC (rev 384)
@@ -40,7 +40,7 @@
   if ($dry_run) {
     print "$cmd\n";
   } else {
-    system $cmd
+    system ($cmd) == 0
       or dieif (1, q{Cannot run "} . join (" ", (split (" ", $cmd))[0..1])
 	           . q{" command});
   }




More information about the Pkg-octave-commit mailing list