[PC-BSD Commits] r6257 - pcbsd/trunk/SoftwareManager

svn at pcbsd.org svn at pcbsd.org
Tue Feb 16 08:28:35 PST 2010


Author: kris
Date: 2010-02-16 08:28:35 -0800 (Tue, 16 Feb 2010)
New Revision: 6257

Modified:
   pcbsd/trunk/SoftwareManager/softmanager-pbiupdate.cpp
Log:

Fixed a major bug in installing software, where the source file was getting removed before starting
the install



Modified: pcbsd/trunk/SoftwareManager/softmanager-pbiupdate.cpp
===================================================================
--- pcbsd/trunk/SoftwareManager/softmanager-pbiupdate.cpp	2010-02-16 15:57:33 UTC (rev 6256)
+++ pcbsd/trunk/SoftwareManager/softmanager-pbiupdate.cpp	2010-02-16 16:28:35 UTC (rev 6257)
@@ -429,12 +429,6 @@
     // Success!
     item->setDownloadFailed(false);
     
-    // Rename the .part file to the finished .pbi
-    if ( QFile::exists(item->getDownloadFile()) )
-    {
-      QFile::remove(item->getDownloadFile() );
-    }
-
     // The download finished, lets start the install / upgrade 
     slotStartPBIInstall();
   }
@@ -495,6 +489,7 @@
 
 
     stream4 << "echo 'SETSTEPS: 2'\n";
+    stream4 << "sleep 5\n";
     stream4 << "echo 'MSG: Installing " + item->getNewProgDirName() + "'\n";
     stream4 << "chmod 755 '" + item->getDownloadFile() + "'\n";
     stream4 << "'" + item->getDownloadFile() + "' -text -accept\n";



More information about the Commits mailing list