Fixes an issue reported by @rphohl that XSwiftBus is not found

* only download non-restricted versions
* utility functions to find non-restricted versions
This commit is contained in:
Klaus Basan
2018-01-29 07:52:20 +01:00
parent 39533a7508
commit c6b942dc15
7 changed files with 29 additions and 3 deletions

View File

@@ -123,6 +123,9 @@ namespace BlackMisc
//! Has distributions?
bool hasDistributions() const { return !m_distributions.isEmpty(); }
//! Has unrestricted distribution
bool hasUnrestrictedDistribution() const;
//! Is distributed with given distribution?
bool isWithDistribution(const CDistribution &distribution, bool acceptMoreStableDistributions) const;