[PC-BSD Commits] r6516 - pcbsd/trunk/SysInstaller
svn at pcbsd.org
svn at pcbsd.org
Tue Apr 6 15:35:55 PDT 2010
Author: kris
Date: 2010-04-06 15:35:55 -0700 (Tue, 06 Apr 2010)
New Revision: 6516
Modified:
pcbsd/trunk/SysInstaller/backend.cpp
Log:
Fixed a logic bug in backend for SysInstaller when fetching rsync data
Modified: pcbsd/trunk/SysInstaller/backend.cpp
===================================================================
--- pcbsd/trunk/SysInstaller/backend.cpp 2010-04-06 22:25:00 UTC (rev 6515)
+++ pcbsd/trunk/SysInstaller/backend.cpp 2010-04-06 22:35:55 UTC (rev 6516)
@@ -86,12 +86,10 @@
while(p.state() == QProcess::Starting || p.state() == QProcess::Running)
QCoreApplication::processEvents();
- if (p.waitForFinished()) {
- while (p.canReadLine()) {
- line = p.readLine().simplified();
- backupList = line.split(":");
- qDebug() << "Found Rsync Backups: " << line;
- }
+ while (p.canReadLine()) {
+ line = p.readLine().simplified();
+ backupList = line.split(":");
+ qDebug() << "Found Rsync Backups: " << line;
}
if ( p.exitCode() != 0 )
@@ -112,10 +110,9 @@
Process p(QStringList() << "enable-net" << Nic << IP << NetMask << DNS << Gate << Mirrors);
while(p.state() == QProcess::Starting || p.state() == QProcess::Running)
QCoreApplication::processEvents();
- if (p.waitForFinished()) {
- while (p.canReadLine()) {
- qDebug() << "Enable Nic: " << p.readLine().simplified();
- }
+
+ while (p.canReadLine()) {
+ qDebug() << "Enable Nic: " << p.readLine().simplified();
}
}
More information about the Commits
mailing list