From: Jiri Srain Date: Wed, 2 Nov 2005 14:48:37 +0000 (+0000) Subject: added the freshen dependency X-Git-Tag: BASE-SuSE-SLE-10-SP2-Branch~3716 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=0728dd68f148112bcfa8e2229f1de79781c0f63c;p=platform%2Fupstream%2Flibzypp.git added the freshen dependency --- diff --git a/zypp/Dependencies.cc b/zypp/Dependencies.cc index 958e73d..b08017b 100644 --- a/zypp/Dependencies.cc +++ b/zypp/Dependencies.cc @@ -47,6 +47,8 @@ namespace zypp CapSet _recommends; /** */ CapSet _suggests; + /** */ + CapSet _freshens; static DependenciesImplPtr nodeps() { @@ -72,6 +74,7 @@ namespace zypp str << "OBSOLETES:" << endl << obj._obsoletes; str << "RECOMMENDS:" << endl << obj._recommends; str << "SUGGESTS:" << endl << obj._suggests; + str << "FRESHENS:" << endl << obj._freshens; return str; } @@ -140,6 +143,9 @@ namespace zypp const CapSet & Dependencies::suggests() const { return _pimpl->_suggests; } + const CapSet & Dependencies::freshens() const + { return _pimpl->_freshens; } + // fix it #define ZYPP_DEPENDENCIES_COW if(_pimpl->refCount()>1){_pimpl= new detail::DependenciesImpl;} void Dependencies::setProvides( const CapSet & val_r ) @@ -163,6 +169,9 @@ namespace zypp void Dependencies::setSuggests( const CapSet & val_r ) { ZYPP_DEPENDENCIES_COW; _pimpl->_suggests = val_r; } + void Dependencies::setFreshens( const CapSet & val_r ) + { ZYPP_DEPENDENCIES_COW; _pimpl->_freshens = val_r; } + /****************************************************************** ** ** FUNCTION NAME : operator<< diff --git a/zypp/Dependencies.h b/zypp/Dependencies.h index 083f180..23c144d 100644 --- a/zypp/Dependencies.h +++ b/zypp/Dependencies.h @@ -60,6 +60,8 @@ namespace zypp const CapSet & recommends() const; /** */ const CapSet & suggests() const; + /** */ + const CapSet & freshens() const; /** */ void setProvides( const CapSet & val_r ); @@ -75,6 +77,8 @@ namespace zypp void setRecommends( const CapSet & val_r ); /** */ void setSuggests( const CapSet & val_r ); + /** */ + void setFreshens( const CapSet & val_r ); private: /** Pointer to implementation */