[PC-BSD Commits] r7939 - pcbsd/current/src-qt4/pc-sysmanager

svn at pcbsd.org svn at pcbsd.org
Thu Oct 28 13:22:15 PDT 2010


Author: kris
Date: 2010-10-28 13:22:15 -0700 (Thu, 28 Oct 2010)
New Revision: 7939

Modified:
   pcbsd/current/src-qt4/pc-sysmanager/pbsystemtab.cpp
Log:

Put checks in place if meta-pkg manager fails, and alert the user to this
along with location of log file



Modified: pcbsd/current/src-qt4/pc-sysmanager/pbsystemtab.cpp
===================================================================
--- pcbsd/current/src-qt4/pc-sysmanager/pbsystemtab.cpp	2010-10-28 20:09:54 UTC (rev 7938)
+++ pcbsd/current/src-qt4/pc-sysmanager/pbsystemtab.cpp	2010-10-28 20:22:15 UTC (rev 7939)
@@ -877,10 +877,16 @@
 
 	populateMetaPkgs();
 
-        QMessageBox::information(this, tr("System Packages"),
-        tr("System packages updated successfully."),
-        QMessageBox::Ok,
-        QMessageBox::Ok);
+	if ( addMetaProc->exitCode() != 0 )
+        	QMessageBox::critical(this, tr("System Packages"),
+        	tr("The meta-pkg manager returned an error. For more details please look at the log file:") + " /tmp/.pc-metapkgmanager.log",
+        	QMessageBox::Ok,
+        	QMessageBox::Ok);
+	else
+        	QMessageBox::information(this, tr("System Packages"),
+        	tr("System packages updated successfully."),
+        	QMessageBox::Ok,
+        	QMessageBox::Ok);
 }
 
 bool PBSystemTab::getMediaLocation(QString &source, QString &dir)



More information about the Commits mailing list