#include "zypp/sat/Solvable.h"
#include "zypp/Repository.h"
#include "zypp/RepoInfo.h"
-#include "zypp/ZConfig.h"
#include "zypp/IdString.h"
using namespace zypp;
unsigned ResObject::mediaNr() const
{ return lookupNumAttribute( sat::SolvAttr::medianr ); }
- bool ResObject::installOnly() const
- {
- std::set<IdString> parallel = ZConfig::instance().parallelInstallable();
- if (parallel.find(ident()) != parallel.end())
- return true;
- return false;
- }
-
Date ResObject::buildtime() const
{ return Date( lookupNumAttribute( sat::SolvAttr::buildtime ) ); }
unsigned mediaNr() const;
/**
- * \TODO FIXME what is this?
- * Flag in the metadata indicating this should be
- * installed unsing '-i' (not -U).
- */
- bool installOnly() const;
-
- /**
* \short build time of the resolvable
*/
Date buildtime() const;
using sat::Solvable::edition;
using sat::Solvable::arch;
+
+ /**
+ * Flag in the metadata indicating this should be
+ * installed unsing '-i' (not -U).
+ */
+ using sat::Solvable::installOnly;
+
/** \name Dependencies. */
//@{
/** Select by Dep. */
#include "zypp/sat/Pool.h"
#include "zypp/Repository.h"
#include "zypp/OnMediaLocation.h"
+#include "zypp/ZConfig.h"
using std::endl;
//return ArchId( _solvable->arch );
}
+ bool Solvable::installOnly() const
+ {
+ std::set<IdString> parallel = ZConfig::instance().parallelInstallable();
+ if (parallel.find(ident()) != parallel.end())
+ return true;
+ return false;
+ }
+
IdString Solvable::vendor() const
{
NO_SOLVABLE_RETURN( IdString() );
IdString vendor() const;
+ bool installOnly() const;
+
public:
/** \name Access to the \ref Solvable dependencies.