[zypp-commit] r10595 - in /trunk/libzypp: package/libzypp.changes zypp/ui/Selectable.cc zypp/ui/Selectable.h zypp/ui/SelectableImpl.h
Author: mlandres Date: Wed Jul 16 14:41:38 2008 New Revision: 10595 URL: http://svn.opensuse.org/viewcvs/zypp?rev=10595&view=rev Log: Add ui::Selectable::isNeeded to indicate patch relevance Modified: trunk/libzypp/package/libzypp.changes trunk/libzypp/zypp/ui/Selectable.cc trunk/libzypp/zypp/ui/Selectable.h trunk/libzypp/zypp/ui/SelectableImpl.h Modified: trunk/libzypp/package/libzypp.changes URL: http://svn.opensuse.org/viewcvs/zypp/trunk/libzypp/package/libzypp.changes?rev=10595&r1=10594&r2=10595&view=diff ============================================================================== --- trunk/libzypp/package/libzypp.changes (original) +++ trunk/libzypp/package/libzypp.changes Wed Jul 16 14:41:38 2008 @@ -1,4 +1,10 @@ ------------------------------------------------------------------- +Wed Jul 16 14:39:50 CEST 2008 - ma@suse.de + +- Add ui::Selectable::isNeeded to indicate patch relevance (bnc #409150) +- revision 10595 + +------------------------------------------------------------------- Wed Jul 16 01:10:37 CEST 2008 - ma@suse.de - Remove Atom, Script, Message and other obsolete classes. Modified: trunk/libzypp/zypp/ui/Selectable.cc URL: http://svn.opensuse.org/viewcvs/zypp/trunk/libzypp/zypp/ui/Selectable.cc?rev=10595&r1=10594&r2=10595&view=diff ============================================================================== --- trunk/libzypp/zypp/ui/Selectable.cc (original) +++ trunk/libzypp/zypp/ui/Selectable.cc Wed Jul 16 14:41:38 2008 @@ -109,6 +109,9 @@ bool Selectable::isUnmaintained() const { return _pimpl->isUnmaintained(); } + bool Selectable::isNeeded() const + { return _pimpl->isNeeded(); } + ResStatus::TransactByValue Selectable::modifiedBy() const { return _pimpl->modifiedBy(); } Modified: trunk/libzypp/zypp/ui/Selectable.h URL: http://svn.opensuse.org/viewcvs/zypp/trunk/libzypp/zypp/ui/Selectable.h?rev=10595&r1=10594&r2=10595&view=diff ============================================================================== --- trunk/libzypp/zypp/ui/Selectable.h (original) +++ trunk/libzypp/zypp/ui/Selectable.h Wed Jul 16 14:41:38 2008 @@ -190,6 +190,12 @@ */ bool isUnmaintained() const; + /** Whether the item is relevant but has broken requirements. + * A 'needed' Patch should be installed, while an 'unneeded' one + * is either applied or not relevant for the system. + */ + bool isNeeded() const; + public: /** \name Query objects fate in case of commit. */ @@ -251,6 +257,8 @@ /** Set LicenceConfirmed bit. */ void setLicenceConfirmed( bool val_r = true ); + + //@} public: Modified: trunk/libzypp/zypp/ui/SelectableImpl.h URL: http://svn.opensuse.org/viewcvs/zypp/trunk/libzypp/zypp/ui/SelectableImpl.h?rev=10595&r1=10594&r2=10595&view=diff ============================================================================== --- trunk/libzypp/zypp/ui/SelectableImpl.h (original) +++ trunk/libzypp/zypp/ui/SelectableImpl.h Wed Jul 16 14:41:38 2008 @@ -165,6 +165,12 @@ bool isUnmaintained() const { return availableEmpty(); } + bool isNeeded() const + { + PoolItem cand( candidateObj() ); + return cand && cand.isBroken(); + } + /** Return who caused the modification. */ ResStatus::TransactByValue modifiedBy() const; -- To unsubscribe, e-mail: zypp-commit+unsubscribe@opensuse.org For additional commands, e-mail: zypp-commit+help@opensuse.org
participants (1)
-
mlandres@svn.opensuse.org