aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAvatar David Leverton <levertond@googlemail.com> 2008-06-12 21:15:03 +0000
committerAvatar Fernando J. Pereda <ferdy@ferdyx.org> 2008-06-14 12:37:56 +0000
commitb22294223eab3ecaf78c6aa95f8bffe8fdd70b0f (patch)
tree3c39d89e7a6093c079a73fade2cb0e49bc31aaec
parent3981782f15baa105c0f97eafe68033879f4aa61c (diff)
downloadpaludis-b22294223eab3ecaf78c6aa95f8bffe8fdd70b0f.tar.gz
paludis-b22294223eab3ecaf78c6aa95f8bffe8fdd70b0f.tar.xz
Remove version part length limitation per Gentoo Council decision.
-rw-r--r--paludis/version_spec.cc20
1 files changed, 0 insertions, 20 deletions
diff --git a/paludis/version_spec.cc b/paludis/version_spec.cc
index 7adb438..aea055a 100644
--- a/paludis/version_spec.cc
+++ b/paludis/version_spec.cc
@@ -117,11 +117,6 @@ VersionSpec::VersionSpec(const std::string & text) :
if (! parser.consume(+simple_parser::any_of("0123456789") >> number_part))
throw BadVersionSpecError(text, "Expected number part not found at offset " + stringify(parser.offset()));
- if (number_part.size() > 8)
- Log::get_instance()->message("version_spec.too_long", ll_qa, lc_context) <<
- "Number part '" << number_part << "' exceeds 8 digit limit permitted by the Package Manager Specification "
- "(Paludis supports arbitrary lengths, but other package managers do not)";
-
_imp->parts.push_back(Part(number, number_part));
if (! parser.consume(simple_parser::exact(".")))
@@ -155,11 +150,6 @@ VersionSpec::VersionSpec(const std::string & text) :
if (! parser.consume(*simple_parser::any_of("0123456789") >> number_str))
throw BadVersionSpecError(text, "Expected optional number at offset " + stringify(parser.offset()));
- if (number_str.size() > 8)
- Log::get_instance()->message("version_spec.too_long", ll_qa, lc_context) <<
- "Number part '" << number_str << "' exceeds 8 digit limit permitted by the Package Manager Specification "
- "(Paludis supports arbitrary lengths, but other package managers do not)";
-
if (number_str.size() > 0)
{
number_str = strip_leading(number_str, "0");
@@ -177,11 +167,6 @@ VersionSpec::VersionSpec(const std::string & text) :
if (! parser.consume(*simple_parser::any_of("0123456789") >> number_str))
throw BadVersionSpecError(text, "Expected optional number at offset " + stringify(parser.offset()));
- if (number_str.size() > 8)
- Log::get_instance()->message("version_spec.too_long", ll_qa, lc_context) <<
- "Number part '" << number_str << "' exceeds 8 digit limit permitted by the Package Manager Specification "
- "(Paludis supports arbitrary lengths, but other package managers do not)";
-
if (number_str.size() > 0)
{
number_str = strip_leading(number_str, "0");
@@ -217,11 +202,6 @@ VersionSpec::VersionSpec(const std::string & text) :
if (! parser.consume(*simple_parser::any_of("0123456789") >> number_str))
throw BadVersionSpecError(text, "Expected optional number at offset " + stringify(parser.offset()));
- if (number_str.size() > 8)
- Log::get_instance()->message("version_spec.too_long", ll_qa, lc_context) <<
- "Number part '" << number_str << "' exceeds 8 digit limit permitted by the Package Manager Specification "
- "(Paludis supports arbitrary lengths, but other package managers do not)";
-
/* Are we -r */
bool empty(number_str.empty());