Author: dmacvicar Date: Mon Jun 18 23:12:35 2007 New Revision: 5776 URL: http://svn.opensuse.org/viewcvs/zypp?rev=5776&view=rev Log: - fix segfault in RepoStatus (yeah I forgot to new the Impl class in one of the constructors :-P ) - Fix refresh, now it is smart :-) Modified: trunk/libzypp/zypp/RepoManager.cc trunk/libzypp/zypp/RepoStatus.cc Modified: trunk/libzypp/zypp/RepoManager.cc URL: http://svn.opensuse.org/viewcvs/zypp/trunk/libzypp/zypp/RepoManager.cc?rev=5776&r1=5775&r2=5776&view=diff ============================================================================== --- trunk/libzypp/zypp/RepoManager.cc (original) +++ trunk/libzypp/zypp/RepoManager.cc Mon Jun 18 23:12:35 2007 @@ -338,7 +338,11 @@ refresh = true; } } - + else + { + refresh = true; + } + if ( refresh ) downloader.download(tmpdir.path()); @@ -360,7 +364,11 @@ refresh = true; } } - + else + { + refresh = true; + } + if ( refresh ) downloader.download(tmpdir.path()); // no error Modified: trunk/libzypp/zypp/RepoStatus.cc URL: http://svn.opensuse.org/viewcvs/zypp/trunk/libzypp/zypp/RepoStatus.cc?rev=5776&r1=5775&r2=5776&view=diff ============================================================================== --- trunk/libzypp/zypp/RepoStatus.cc (original) +++ trunk/libzypp/zypp/RepoStatus.cc Mon Jun 18 23:12:35 2007 @@ -66,7 +66,7 @@ // METHOD TYPE : Ctor // RepoStatus::RepoStatus() - : _pimpl( new Impl() ) + : _pimpl( new Impl() ) {} /////////////////////////////////////////////////////////////////// @@ -78,6 +78,7 @@ {} RepoStatus::RepoStatus( const Pathname &path ) + : _pimpl( new Impl() ) { _pimpl->checksum = filesystem::sha1sum(path); } -- To unsubscribe, e-mail: zypp-commit+unsubscribe@opensuse.org For additional commands, e-mail: zypp-commit+help@opensuse.org