mark the transact causer only when we set the transact, not when we clear it
authorKlaus Kaempf <kkaempf@suse.de>
Mon, 6 Feb 2006 17:54:15 +0000 (17:54 +0000)
committerKlaus Kaempf <kkaempf@suse.de>
Mon, 6 Feb 2006 17:54:15 +0000 (17:54 +0000)
zypp/ResStatus.h

index c7fcd68a42d94199d87ce7cb314f0f9967b9115d..9a6522ba78cf3aa114ff354b14f254bca8b7e689 100644 (file)
@@ -235,7 +235,8 @@ namespace zypp
     {
        if (!isGreaterThan<TransactByField>( causer )) {        
            fieldValueAssign<TransactField>( val_r ? TRANSACT : KEEP_STATE );
-           fieldValueAssign<TransactByField>( causer );
+           if (val_r) fieldValueAssign<TransactByField>( causer );                     // remember the causer on set
+           else fieldValueAssign<TransactByField>( SOLVER );                           // clear it on reset
            return true;
        } else if (fieldValueIs<TransactField>(val_r ? TRANSACT : KEEP_STATE)) { 
            return true; // is already set