From 82917e0ba567c4293f466259697a74da46e82dc1 Mon Sep 17 00:00:00 2001 From: Duncan Mac-Vicar P Date: Mon, 18 Jun 2007 21:12:35 +0000 Subject: [PATCH] - fix segfault in RepoStatus (yeah I forgot to new the Impl class in one of the constructors :-P ) - Fix refresh, now it is smart :-) --- zypp/RepoManager.cc | 12 ++++++++++-- zypp/RepoStatus.cc | 3 ++- 2 files changed, 12 insertions(+), 3 deletions(-) diff --git a/zypp/RepoManager.cc b/zypp/RepoManager.cc index 7b0fd87..cd3145f 100644 --- a/zypp/RepoManager.cc +++ b/zypp/RepoManager.cc @@ -338,7 +338,11 @@ namespace zypp refresh = true; } } - + else + { + refresh = true; + } + if ( refresh ) downloader.download(tmpdir.path()); @@ -360,7 +364,11 @@ namespace zypp refresh = true; } } - + else + { + refresh = true; + } + if ( refresh ) downloader.download(tmpdir.path()); // no error diff --git a/zypp/RepoStatus.cc b/zypp/RepoStatus.cc index 6d77fcc..fa24829 100644 --- a/zypp/RepoStatus.cc +++ b/zypp/RepoStatus.cc @@ -66,7 +66,7 @@ namespace zypp // METHOD TYPE : Ctor // RepoStatus::RepoStatus() - : _pimpl( new Impl() ) + : _pimpl( new Impl() ) {} /////////////////////////////////////////////////////////////////// @@ -78,6 +78,7 @@ namespace zypp {} RepoStatus::RepoStatus( const Pathname &path ) + : _pimpl( new Impl() ) { _pimpl->checksum = filesystem::sha1sum(path); } -- 2.7.4