[PC-BSD Commits] r7504 - pcbsd/current/src-qt4/pc-sysinstaller

svn at pcbsd.org svn at pcbsd.org
Fri Sep 3 08:42:46 PDT 2010


Author: kris
Date: 2010-09-03 08:42:46 -0700 (Fri, 03 Sep 2010)
New Revision: 7504

Modified:
   pcbsd/current/src-qt4/pc-sysinstaller/sys-installwidget.cpp
Log:

Check for hooks from pc-metapkgmanager and update GUI to display progress of it



Modified: pcbsd/current/src-qt4/pc-sysinstaller/sys-installwidget.cpp
===================================================================
--- pcbsd/current/src-qt4/pc-sysinstaller/sys-installwidget.cpp	2010-09-03 15:28:33 UTC (rev 7503)
+++ pcbsd/current/src-qt4/pc-sysinstaller/sys-installwidget.cpp	2010-09-03 15:42:46 UTC (rev 7504)
@@ -166,6 +166,16 @@
 	     else
                 labelInstallStatus->setText(tr("Installing system... This may take a while...")); 
           }
+
+        } else if ( tmp.indexOf("Pending Meta-Package changes: ") != -1 ) {
+          tmp = tmp.remove(0, tmp.indexOf(":") + 1 ); 
+          range = tmp.toInt(&ok);
+          if ( ok ) {
+             progressBarInstall->setRange(0, range);  
+             installFoundCounter = true;
+             labelInstallStatus->setText(tr("Installing Desktop-Packages... This may take a while...")); 
+          }
+
         } else 
           labelInstallStatus->setText(tmp);
      } else {
@@ -177,6 +187,10 @@
          installFoundCounter = false;
          progressBarInstall->setRange(0, 0);  
        }
+       if ( tmp.indexOf("Meta-Package changes finished!") != -1 ) {
+         installFoundCounter = false;
+         progressBarInstall->setRange(0, 0);  
+       }
      }
 
   } // end of while loop



More information about the Commits mailing list