From efa1d35f4570a176e827e7880276e7252e0ce519 Mon Sep 17 00:00:00 2001 From: Duncan Mac-Vicar P Date: Wed, 27 Feb 2008 09:18:24 +0000 Subject: [PATCH] fix target not cachedsometimes --- VERSION.cmake | 4 ++-- package/libzypp.changes | 6 ++++++ zypp/Target.cc | 3 +++ zypp/Target.h | 5 +++++ zypp/zypp_detail/ZYppImpl.cc | 1 + 5 files changed, 17 insertions(+), 2 deletions(-) diff --git a/VERSION.cmake b/VERSION.cmake index 88ac863..25b4c1d 100644 --- a/VERSION.cmake +++ b/VERSION.cmake @@ -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") diff --git a/package/libzypp.changes b/package/libzypp.changes index b5d2b8a..08309f9 100644 --- a/package/libzypp.changes +++ b/package/libzypp.changes @@ -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 diff --git a/zypp/Target.cc b/zypp/Target.cc index f4ff4c0..29c968f 100644 --- a/zypp/Target.cc +++ b/zypp/Target.cc @@ -64,6 +64,9 @@ namespace zypp // /////////////////////////////////////////////////////////////////// + void Target::buildCache() + { _pimpl->buildCache(); } + void Target::load() { _pimpl->load(); } diff --git a/zypp/Target.h b/zypp/Target.h index b52227a..ccf4b64 100644 --- a/zypp/Target.h +++ b/zypp/Target.h @@ -55,6 +55,11 @@ namespace zypp public: /** + * builds or refreshes the target cache + */ + void buildCache(); + + /** * load resolvables into the pool */ void load(); diff --git a/zypp/zypp_detail/ZYppImpl.cc b/zypp/zypp_detail/ZYppImpl.cc index ee1529d..c59dd88 100644 --- a/zypp/zypp_detail/ZYppImpl.cc +++ b/zypp/zypp_detail/ZYppImpl.cc @@ -105,6 +105,7 @@ namespace zypp #endif } _target = new Target( root ); + _target->buildCache(); } void ZYppImpl::finishTarget() -- 2.7.4