Ignore:
Timestamp:
08/26/13 08:36:11 (13 months ago)
Author:
Ken Moore <ken@…>
Branches:
master, 9.2-release, releng/10.0, releng/10.0.1, releng/10.0.2, releng/10.0.3
Children:
408039b
Parents:
31283ea
Message:

Fix a bug with the level of error reporting in the remove channel. Now it should only have a high level of error checking it is running the pbi_delete command. Other commands (like the occasional mime type removal) should no longer cause an error when removing a PBI.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src-qt4/pc-softwaremanager/processManager.cpp

    r31283ea r52fa6eb  
    8484    qDebug() << "Removal Process Started:" << cmd; 
    8585    remLog.clear(); 
     86    if( cmd.contains("pbi_delete") ){ remStrictErrChecking = true; } 
     87    else{ remStrictErrChecking=false; } 
    8688    remProc->start(cmd);                   
    8789  }else if( ID == DOWNLOAD ){ 
     
    233235 
    234236void ProcessManager::slotRemProcFinished(){ 
    235   if(remProc->exitStatus() != QProcess::NormalExit || remProc->exitCode() != 0){ 
     237  if(remProc->exitStatus() != QProcess::NormalExit || (remProc->exitCode() != 0 && remStrictErrChecking) ){ 
    236238    qDebug() << "Removal Process Error Log:\n"<<remLog.join("\n"); 
    237239    emit ProcessError(REMOVE, remLog); 
Note: See TracChangeset for help on using the changeset viewer.