std::set<Url> baseUrls;
Pathname path;
std::string service;
+ std::string targetDistro;
Pathname metadatapath;
Pathname packagespath;
DefaultIntegral<unsigned,defaultPriority> priority;
_pimpl->service = name;
return *this;
}
+
+ RepoInfo & RepoInfo::setTargetDistribution(
+ const std::string & targetDistribution)
+ {
+ _pimpl->targetDistro = targetDistribution;
+ }
bool RepoInfo::gpgCheck() const
{ return indeterminate(_pimpl->gpgcheck) ? true : (bool) _pimpl->gpgcheck; }
std::string RepoInfo::service() const
{ return _pimpl->service; }
+
+ std::string RepoInfo::targetDistribution() const
+ { return _pimpl->targetDistro; }
RepoInfo::urls_const_iterator RepoInfo::baseUrlsBegin() const
{
str << "- keeppackages: " << keepPackages() << std::endl;
str << "- service : " << service() << std::endl;
+ if (!targetDistribution().empty())
+ str << "- targetdistro: " << targetDistribution() << std::endl;
+
return str;
}
*/
std::string service() const;
+ /**
+ * Distribution for which is this repository meant.
+ */
+ std::string targetDistribution() const;
+
public:
/**
* Add a base url. \see baseUrls
RepoInfo & setService( const std::string& name );
/**
+ * Sets the distribution for which is this repository meant. This is
+ * an in-memory value only, does not get written to the .repo file upon
+ * saving.
+ */
+ RepoInfo & setTargetDistribution(const std::string & targetDistribution);
+
+ /**
* Write a human-readable representation of this RepoInfo object
* into the \a str stream. Useful for logging.
*/