File 0022-just-return-after-EULA-acceptance.patch of Package apper

Git commit 3783c2d23214e078ce9188eea5b56a1d0d0f1fe4 by Daniel Nicoletti.
Committed on 19/02/2013 at 15:43.
Pushed by dantti into branch 'master'.

Make sure we don't exit the transaction after accepting the EULA
BUG: 314256

M  +4    -2    libapper/PkTransaction.cpp

http://commits.kde.org/apper/3783c2d23214e078ce9188eea5b56a1d0d0f1fe4

diff --git a/libapper/PkTransaction.cpp b/libapper/PkTransaction.cpp
index a2b878e..282b4e7 100644
--- a/libapper/PkTransaction.cpp
+++ b/libapper/PkTransaction.cpp
@@ -486,12 +486,14 @@ void PkTransaction::installSignature()
 }
 
 void PkTransaction::slotFinished(Transaction::Exit status)
-{   
+{
     // Clear the model to don't keep trash when reusing the transaction
     d->progressModel->clear();
 
     Requirements *requires = 0;
     Transaction::Role _role = role();
+    kDebug() << status << _role;
+
     switch (_role) {
     case Transaction::RoleInstallSignature:
     case Transaction::RoleAcceptEula:
@@ -499,13 +501,13 @@ void PkTransaction::slotFinished(Transaction::Exit status)
             // if the required action was performed with success
             // requeue our main transaction
             requeueTransaction();
+            return;
         }
         break;
     default:
         break;
     }
 
-    kDebug() << status << _role;
     switch(status) {
     case Transaction::ExitSuccess:
         // Check if we are just simulating
openSUSE Build Service is sponsored by