From ee2824d01683dfddae3795953ea475e76e4c7b95 Mon Sep 17 00:00:00 2001 From: Duncan Mac-Vicar P Date: Wed, 15 Feb 2006 16:43:49 +0000 Subject: [PATCH] dont depend enabled on is initialized --- zypp/target/TargetImpl.cc | 5 +++-- zypp/target/TargetImpl.h | 1 + 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/zypp/target/TargetImpl.cc b/zypp/target/TargetImpl.cc index b10f9230b..7721787f3 100644 --- a/zypp/target/TargetImpl.cc +++ b/zypp/target/TargetImpl.cc @@ -58,6 +58,7 @@ namespace zypp : _root(root_r) { _rpm.initDatabase(_root); + _storage_enabled = false; MIL << "Initialized target on " << _root << endl; } @@ -74,14 +75,14 @@ namespace zypp bool TargetImpl::isStorageEnabled() const { - return _storage.isInitialized(); + return _storage_enabled; } void TargetImpl::enableStorage(const Pathname &root_r) { - _storage.init(root_r); + _storage_enabled = true; } const ResStore & TargetImpl::resolvables() diff --git a/zypp/target/TargetImpl.h b/zypp/target/TargetImpl.h index a5e4e29d6..bd90b2b98 100644 --- a/zypp/target/TargetImpl.h +++ b/zypp/target/TargetImpl.h @@ -117,6 +117,7 @@ namespace zypp rpm::RpmDb _rpm; #ifndef STORAGE_DISABLED zypp::storage::PersistentStorage _storage; + bool _storage_enabled; #endif private: /** Null implementation */ -- 2.34.1