Changeset 4103
- Timestamp:
- 06/13/09 15:26:12 (9 months ago)
- Location:
- pcbsd
- Files:
-
- 2 modified
-
trunk-current/SystemUpdaterTray/UpdaterTray.cpp (modified) (1 diff)
-
trunk/SystemUpdaterTray/UpdaterTray.cpp (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
pcbsd/trunk-current/SystemUpdaterTray/UpdaterTray.cpp
r4101 r4103 258 258 QString Version = getLineFromCommandOutput(command); 259 259 260 // Now traverse the directory, see if we have updates.261 readSysUpdates = new Q3Process( this );262 readSysUpdates->addArgument( "sh");263 readSysUpdates->addArgument( "/PCBSD/SystemUpdater/bin/readSysUpdatesUser.sh");264 readSysUpdates->addArgument( Version );265 readSysUpdates->addArgument(sysPatchsetTmpFile);266 readSysUpdates->addArgument(username);267 260 268 261 // Check to see if the update download was successful and warn if not 269 262 if ( sysFetchJob->error() != 0 ) 270 263 { 271 // We couldn't fetch any updates, set the status and update the icon 272 programstatus = CHECK_FAILED; 273 contextMenuRefresh(); 274 displayTooltip(); 275 } 276 277 // Connect the exited signal and start the process 278 connect( readSysUpdates, SIGNAL(processExited()), this, SLOT(slotReadSystemUpdates() ) ); 279 if ( ! readSysUpdates->start() ) { 264 // We couldn't fetch any updates, set the status and update the icon 265 programstatus = CHECK_FAILED; 266 contextMenuRefresh(); 267 displayTooltip(); 268 } else { 269 // Now traverse the directory, see if we have updates. 270 readSysUpdates = new Q3Process( this ); 271 readSysUpdates->addArgument( "sh"); 272 readSysUpdates->addArgument( "/PCBSD/SystemUpdater/bin/readSysUpdatesUser.sh"); 273 readSysUpdates->addArgument( Version ); 274 readSysUpdates->addArgument(sysPatchsetTmpFile); 275 readSysUpdates->addArgument(username); 276 277 // Connect the exited signal and start the process 278 connect( readSysUpdates, SIGNAL(processExited()), this, SLOT(slotReadSystemUpdates() ) ); 279 if ( ! readSysUpdates->start() ) { 280 280 QMessageBox::information( 0, tr("Error!"), tr("Error running updates2 script! "), QMessageBox::Ok ); 281 } 282 283 281 } 282 } 284 283 285 284 } -
pcbsd/trunk/SystemUpdaterTray/UpdaterTray.cpp
r4100 r4103 258 258 QString Version = getLineFromCommandOutput(command); 259 259 260 // Now traverse the directory, see if we have updates.261 readSysUpdates = new Q3Process( this );262 readSysUpdates->addArgument( "sh");263 readSysUpdates->addArgument( "/PCBSD/SystemUpdater/bin/readSysUpdatesUser.sh");264 readSysUpdates->addArgument( Version );265 readSysUpdates->addArgument(sysPatchsetTmpFile);266 readSysUpdates->addArgument(username);267 260 268 261 // Check to see if the update download was successful and warn if not 269 262 if ( sysFetchJob->error() != 0 ) 270 263 { 271 // We couldn't fetch any updates, set the status and update the icon 272 programstatus = CHECK_FAILED; 273 contextMenuRefresh(); 274 displayTooltip(); 275 } 276 277 // Connect the exited signal and start the process 278 connect( readSysUpdates, SIGNAL(processExited()), this, SLOT(slotReadSystemUpdates() ) ); 279 if ( ! readSysUpdates->start() ) { 264 // We couldn't fetch any updates, set the status and update the icon 265 programstatus = CHECK_FAILED; 266 contextMenuRefresh(); 267 displayTooltip(); 268 } else { 269 // Now traverse the directory, see if we have updates. 270 readSysUpdates = new Q3Process( this ); 271 readSysUpdates->addArgument( "sh"); 272 readSysUpdates->addArgument( "/PCBSD/SystemUpdater/bin/readSysUpdatesUser.sh"); 273 readSysUpdates->addArgument( Version ); 274 readSysUpdates->addArgument(sysPatchsetTmpFile); 275 readSysUpdates->addArgument(username); 276 277 // Connect the exited signal and start the process 278 connect( readSysUpdates, SIGNAL(processExited()), this, SLOT(slotReadSystemUpdates() ) ); 279 if ( ! readSysUpdates->start() ) { 280 280 QMessageBox::information( 0, tr("Error!"), tr("Error running updates2 script! "), QMessageBox::Ok ); 281 } 282 283 281 } 282 } 284 283 285 284 }
