[pve-devel] r5730 - pve-common/trunk/data/PVE

svn-commits at proxmox.com svn-commits at proxmox.com
Mon Mar 21 07:22:10 CET 2011


Author: dietmar
Date: 2011-03-21 07:22:10 +0100 (Mon, 21 Mar 2011)
New Revision: 5730

Modified:
   pve-common/trunk/data/PVE/Tools.pm
Log:
allow empty log


Modified: pve-common/trunk/data/PVE/Tools.pm
===================================================================
--- pve-common/trunk/data/PVE/Tools.pm	2011-03-21 05:58:40 UTC (rev 5729)
+++ pve-common/trunk/data/PVE/Tools.pm	2011-03-21 06:22:10 UTC (rev 5730)
@@ -545,7 +545,7 @@
     close($fh);
     if ($br) {
 	return "unable to extract last line"
-	    if $readbuf !~ m/\n(.+)$/;
+	    if $readbuf !~ m/\n?(.+)$/;
 	my $line = $1;
 	if ($line =~ m/^TASK OK$/) {
 	    return 'OK';




More information about the pve-devel mailing list