[PC-BSD Commits] r2023 - pbibuild/pbi-source/PBIsource

svn at pcbsd.org svn at pcbsd.org
Thu Jun 5 09:50:46 PDT 2008


Author: kris
Date: 2008-06-05 09:50:46 -0700 (Thu, 05 Jun 2008)
New Revision: 2023

Modified:
   pbibuild/pbi-source/PBIsource/pbi.ui.h
Log:

Fixed same bug with /Programs/bin not being created fast enough, and changed
PBI caption on titlebar to reflect program being installed. 



Modified: pbibuild/pbi-source/PBIsource/pbi.ui.h
===================================================================
--- pbibuild/pbi-source/PBIsource/pbi.ui.h	2008-06-05 16:43:55 UTC (rev 2022)
+++ pbibuild/pbi-source/PBIsource/pbi.ui.h	2008-06-05 16:50:46 UTC (rev 2023)
@@ -320,7 +320,7 @@
         ProgramLabel->setText("<h1><b>" + ProgramName +  " " + ProgramVer + " " + "</b></h1>");
         AuthorLabel->setText(ProgramAuthor);
         WebsiteLabel->setText(ProgramWeb);
-        setCaption(tr("PC-BSD Software Installer") );	
+        setCaption("PBI: " + ProgramName + " " + ProgramVer );	
 	
         tmp = ProgramName;
         tmp.replace(" ", "");
@@ -723,7 +723,8 @@
 	// Regular Program Application
 	if ( ExeLink[exenum] == "0" && ExeWebLink[exenum] == "0" && ExeLink[exenum] == "0" ) {
 	
-             runCommand("mkdir -p /Programs/bin >/dev/null 2>/dev/null");
+             QDir bindir;
+       	     bindir.mkdir ( "/Programs/bin", TRUE );
              runCommand("ln -fs /Programs/" + ProgDirName + "/.sbin/" + Binary + " /Programs/bin/" + Binary+ " >/dev/null 2>/dev/null");
 
                if ( file.open( IO_WriteOnly) ) {
@@ -962,7 +963,8 @@
 	if ( ExeLink[exenum] == "0" && ExeWebLink[exenum] == "0") {
 
 	// Create desktop link
-        runCommand("mkdir -p /Programs/bin >/dev/null 2>/dev/null");
+        QDir bindir;
+       	bindir.mkdir ( "/Programs/bin", TRUE );
         runCommand("ln -fs /Programs/" + ProgDirName + "/.sbin/" + Binary + " /Programs/bin/" + Binary+ " >/dev/null 2>/dev/null");
 
 	



More information about the Commits mailing list