[PC-BSD Commits] r9841 - pcbsd/current/src-qt4/pc-softwaremanager

svn at pcbsd.org svn at pcbsd.org
Thu Mar 31 08:56:22 PDT 2011


Author: kris
Date: 2011-03-31 08:56:22 -0700 (Thu, 31 Mar 2011)
New Revision: 9841

Modified:
   pcbsd/current/src-qt4/pc-softwaremanager/softconfigwidget.cpp
Log:

Fixed up repo config UI to save as root properly



Modified: pcbsd/current/src-qt4/pc-softwaremanager/softconfigwidget.cpp
===================================================================
--- pcbsd/current/src-qt4/pc-softwaremanager/softconfigwidget.cpp	2011-03-31 15:18:31 UTC (rev 9840)
+++ pcbsd/current/src-qt4/pc-softwaremanager/softconfigwidget.cpp	2011-03-31 15:56:22 UTC (rev 9841)
@@ -65,8 +65,9 @@
 
         qDebug() << "Updating mirrors...";
         QProcess rpocmd;
-        rpocmd.start(QString("pbi_listrepo"), QStringList() << "--mirror" << mirrors.join(",") << pbiRepos.getID(curRepo)  );
+        rpocmd.start(QString("pc-su"), QStringList() << "pbi_listrepo --mirror " + mirrors.join(",") + " " +  pbiRepos.getID(curRepo)  );
 	setEnabled(false);
+        rpocmd.waitForFinished(1000);
         while ( rpocmd.state() != QProcess::NotRunning ) {
                 rpocmd.waitForFinished(100);
                 QCoreApplication::processEvents();



More information about the Commits mailing list