Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Merge branch 'master' of github.com:pcbsd/pcbsd

  • Loading branch information...
commit 629cca35ab3a3f69b726ee3ac4d4b16a0c5ee0f2 2 parents 2748876 + ac5b620
@kmoore134 kmoore134 authored
View
2  src-qt4/pc-softwaremanager/pbiBackend.h
@@ -98,7 +98,7 @@ public slots:
//variables - processes
ProcessManager *PMAN;
QString cDownload, cInstall, cRemove, cUpdate, cDownloadFile, cOther; //currently running command/pbi
- bool sDownload, sInstall, sRemove, sUpdate; //flag that these processes were Stopped
+ bool sDownload, sInstall, sRemove, sUpdate,; //flag that these processes were Stopped
QStringList PENDINGDL, PENDINGINSTALL, PENDINGREMOVAL, PENDINGUPDATE, PENDINGOTHER;
QString lDownload, lInstall, lRemove, lUpdate; //latest string output from process
//variables - other
View
8 src-qt4/pc-softwaremanager/processManager.cpp
@@ -232,7 +232,7 @@ void ProcessManager::slotRemProcMessage(){
}
void ProcessManager::slotRemProcFinished(){
- if(remProc->exitStatus() != QProcess::NormalExit){
+ if(remProc->exitStatus() != QProcess::NormalExit || remProc->exitCode() != 0){
qDebug() << "Removal Process Error Log:\n"<<remLog.join("\n");
emit ProcessError(REMOVE, remLog);
}else{
@@ -260,7 +260,7 @@ void ProcessManager::slotDlProcMessage(){
}
void ProcessManager::slotDlProcFinished(){
- if(dlProc->exitStatus() != QProcess::NormalExit){
+ if(dlProc->exitStatus() != QProcess::NormalExit || dlProc->exitCode() != 0){
qDebug() << "Download Process Error Log:\n"<<dlLog.join("\n");
emit ProcessError(DOWNLOAD, dlLog);
}else{
@@ -281,7 +281,7 @@ void ProcessManager::slotInProcMessage(){
}
void ProcessManager::slotInProcFinished(){
- if(inProc->exitStatus() != QProcess::NormalExit){
+ if(inProc->exitStatus() != QProcess::NormalExit || inProc->exitCode() != 0){
qDebug() << "Install Process Error Log:\n"<<inLog.join("\n");
emit ProcessError(INSTALL, inLog);
}else{
@@ -297,7 +297,7 @@ void ProcessManager::slotOtProcMessage(){
}
void ProcessManager::slotOtProcFinished(){
- if(otProc->exitStatus() != QProcess::NormalExit){
+ if(otProc->exitStatus() != QProcess::NormalExit || otProc->exitCode() != 0){
QString msg = otProc->readAllStandardError();
if(msg.isEmpty()){ msg = otProc->readAllStandardOutput(); }
if(msg.isEmpty()){ msg = tr("Unknown Error"); }
Please sign in to comment.
Something went wrong with that request. Please try again.