aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2006-07-03 00:23:03 +0000
committerAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2006-07-03 00:23:03 +0000
commit8bd2399928a2ae2869feac493f2ccfd70c56aa3c (patch)
treee9574a67b1dea6a664033d139ea63f687d234bc3
parent365ee6dc6e215f2a86724bdf6546e7fd55f98d58 (diff)
downloadpaludis-8bd2399928a2ae2869feac493f2ccfd70c56aa3c.tar.gz
paludis-8bd2399928a2ae2869feac493f2ccfd70c56aa3c.tar.xz
Downgrade use of * with operators other than equals from an error to a QA warning
-rw-r--r--paludis/dep_atom.cc5
1 files changed, 4 insertions, 1 deletions
diff --git a/paludis/dep_atom.cc b/paludis/dep_atom.cc
index 741885e..d8b79f1 100644
--- a/paludis/dep_atom.cc
+++ b/paludis/dep_atom.cc
@@ -18,6 +18,7 @@
*/
#include <paludis/dep_atom.hh>
+#include <paludis/util/log.hh>
/** \file
* Implementation for dep_atom.hh things.
@@ -186,7 +187,9 @@ PackageDepAtom::PackageDepAtom(const std::string & ss) :
if ('*' == s.at(s.length() - 1))
{
if (_version_operator != vo_equal)
- throw PackageDepAtomError("Package dep atom '" + ss + "' uses * but not equals operator");
+ Log::get_instance()->message(ll_qa, "Package dep atom '" + ss + "' uses * "
+ "with operator '" + stringify(_version_operator) +
+ "', pretending it uses the equals operator instead");
_version_operator = vo_equal_star;
_version_spec = CountedPtr<VersionSpec, count_policy::ExternalCountTag>(
new VersionSpec(s.substr(q, s.length() - q - 1)));