//@}
public:
+ /** Returns true if the solvable is satisfied */
+ using sat::Solvable::isSatisfied;
+ /** Returns true if the solvable is satisfied */
+ using sat::Solvable::isBroken;
+
+ public:
const sat::Solvable & satSolvable() const { return *this; }
protected:
#include "zypp/sat/detail/PoolImpl.h"
#include "zypp/sat/Solvable.h"
+#include "zypp/sat/Pool.h"
#include "zypp/Repository.h"
#include "zypp/OnMediaLocation.h"
}
///////////////////////////////////////////////////////////////////
+
+ bool Solvable::isSatisfied() const
+ {
+ NO_SOLVABLE_RETURN( false );
+ if (solvable_trivial_installable (_solvable, Pool::instance().systemRepo().get()) == 1)
+ return true;
+ else
+ return false;
+ }
+
+ ///////////////////////////////////////////////////////////////////
namespace
{ /////////////////////////////////////////////////////////////////
/** Expand \ref Capability and call \c fnc_r for each namescpace:language
//@}
public:
+ /** Returns true if the solvable is satisfied */
+ bool isSatisfied() const;
+ /** Returns true if the solvable is satisfied */
+ bool isBroken() const { return !isSatisfied(); }
+
+ public:
/** \name Locale support. */
//@{
/** Whether this \c Solvable claims to support locales. */