fix target not cachedsometimes
authorDuncan Mac-Vicar P <dmacvicar@suse.de>
Wed, 27 Feb 2008 09:18:24 +0000 (09:18 +0000)
committerDuncan Mac-Vicar P <dmacvicar@suse.de>
Wed, 27 Feb 2008 09:18:24 +0000 (09:18 +0000)
VERSION.cmake
package/libzypp.changes
zypp/Target.cc
zypp/Target.h
zypp/zypp_detail/ZYppImpl.cc

index 88ac863..25b4c1d 100644 (file)
@@ -45,6 +45,6 @@
 #
 
 SET(LIBZYPP_MAJOR "4")
-SET(LIBZYPP_MINOR "2")
+SET(LIBZYPP_MINOR "3")
 SET(LIBZYPP_COMPATMINOR "2")
-SET(LIBZYPP_PATCH "10")
+SET(LIBZYPP_PATCH "0")
index b5d2b8a..08309f9 100644 (file)
@@ -1,3 +1,9 @@
+Sun Feb 24 15:40:50 CET 2008 - dmacvicar@suse.de
+-------------------------------------------------------------------
+
+- make sure we have target cache on target initialize
+- version 4.3.0
+
 -------------------------------------------------------------------
 Tue Feb 26 13:59:03 CET 2008 - lslezak@suse.cz
 
index f4ff4c0..29c968f 100644 (file)
@@ -64,6 +64,9 @@ namespace zypp
   //
   ///////////////////////////////////////////////////////////////////
 
+  void Target::buildCache()
+  { _pimpl->buildCache(); }
+
   void Target::load()
   { _pimpl->load(); }
 
index b52227a..ccf4b64 100644 (file)
@@ -55,6 +55,11 @@ namespace zypp
   public:
 
     /**
+     * builds or refreshes the target cache
+     */
+    void buildCache();
+
+    /**
      * load resolvables into the pool
      */
     void load();
index ee1529d..c59dd88 100644 (file)
@@ -105,6 +105,7 @@ namespace zypp
 #endif
       }
       _target = new Target( root );
+      _target->buildCache();
     }
 
     void ZYppImpl::finishTarget()