*/
static unsigned defaultPriority();
/**
+ * The least priority (<tt>unsigned(-1)</tt>).
+ */
+ static unsigned noPriority();
+ /**
* Repository priority for solver.
* Some number between \c 1 (highest priority) and \c 99 (\ref defaultPriority).
*/
* Clears current base URL list and adds \a url.
*/
void setBaseUrl( const Url &url );
+ /**
+ * Clears current base URL list and adds an \ref url_set.
+ */
+ void setBaseUrls( url_set urls );
/**
* \short Repository path
/** Set the value for \ref validRepoSignature (or \c indeterminate if unsigned). */
void setValidRepoSignature( TriBool value_r );
- /**
- * \short Key to use for gpg checking of this repository
- *
- * \param url Url to the key in ASCII armored format
- *
- * \note This is a just a hint to the application and can
- * be ignored.
- *
- */
+
+ /** Whether gpgkey URLs are defined */
+ bool gpgKeyUrlsEmpty() const;
+ /** Number of gpgkey URLs defined */
+ urls_size_type gpgKeyUrlsSize() const;
+
+ /** The list of gpgkey URLs defined for this repo */
+ url_set gpgKeyUrls() const;
+ /** The list of raw gpgkey URLs defined for this repo (no variables replaced) */
+ url_set rawGpgKeyUrls() const;
+ /** Set a list of gpgkey URLs defined for this repo */
+ void setGpgKeyUrls( url_set urls );
+
+ /** (leagcy API) The 1st gpgkey URL defined for this repo */
Url gpgKeyUrl() const;
- /**
- * The raw gpgKeyUrl (no variables replaced).
- */
+ /** (leagcy API) The 1st raw gpgkey URL defined for this repo (no variables replaced) */
Url rawGpgKeyUrl() const;
- /**
- * \short Key to use for gpg checking of this repository
- *
- * \param url Url to the key in ASCII armored format
- *
- * \note This is a just a hint to the application and can
- * be ignored.
- *
- */
+ /** (leagcy API) Set the gpgkey URL defined for this repo */
void setGpgKeyUrl( const Url &gpgkey );
+
/**
* \short Whether packages downloaded from this repository will be kept in local cache
*/
*/
void setTargetDistribution(const std::string & targetDistribution);
+
+ /** Content keywords defined. */
+ const std::set<std::string> & contentKeywords() const;
+
/** Add content keywords */
void addContent( const std::string & keyword_r );
/** \overload add keywords from container */
{ addContentFrom( container_r.begin(), container_r.end() ); }
/** Check for content keywords.
- * Checking for an empty string returns whether content kewords are
- * known at all. They may be missing due to missing metadata in disabled
- * repos.
+ * They may be missing due to missing metadata in disabled repos.
*/
- bool hasContent( const std::string & keyword_r = std::string() ) const;
+ bool hasContent() const;
+ /** \overload check for a keywords being present */
+ bool hasContent( const std::string & keyword_r ) const;
/** \overload check for \b all keywords being present */
template <class TIterator>
bool hasContentAll( TIterator begin_r, TIterator end_r ) const