- Fixed reloading of target data after commit. Broken since
authorMichael Andres <ma@suse.de>
Fri, 20 Oct 2006 14:29:25 +0000 (14:29 +0000)
committerMichael Andres <ma@suse.de>
Fri, 20 Oct 2006 14:29:25 +0000 (14:29 +0000)
  rev 3880.

zypp/zypp_detail/ZYppImpl.cc

index 76bd7aa..f651bd8 100644 (file)
@@ -206,7 +206,7 @@ namespace zypp
       _target = new Target( root );
       _target->enableStorage( root );
     }
-    
+
     void ZYppImpl::initTarget(const Pathname & root, bool commit_only)
     {
       MIL << "initTarget( " << root << ", " << commit_only << ")" << endl;
@@ -254,6 +254,7 @@ namespace zypp
       if (! policy_r.dryRun() ) {
        // reload new status from target
        removeInstalledResolvables();
+        _target->reset();
        addResolvables( _target->resolvables(), true );
       }