aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAvatar Stephen P. Bennett <spb@exherbo.org> 2006-01-28 19:40:20 +0000
committerAvatar Stephen P. Bennett <spb@exherbo.org> 2006-01-28 19:40:20 +0000
commit7e90ff3d510787d2548e6c5f21df910321f9b675 (patch)
treef7eb7b2a9b768ce26d01d69660bfd9c24919ebe4
parent8597f8e4533feea95e8bc166b7fa822050ce650a (diff)
downloadpaludis-7e90ff3d510787d2548e6c5f21df910321f9b675.tar.gz
paludis-7e90ff3d510787d2548e6c5f21df910321f9b675.tar.xz
Fix =* deps. Maybe. Works for me, at least.
-rw-r--r--paludis/version_spec.cc6
1 files changed, 1 insertions, 5 deletions
diff --git a/paludis/version_spec.cc b/paludis/version_spec.cc
index fd40eec..3b863d6 100644
--- a/paludis/version_spec.cc
+++ b/paludis/version_spec.cc
@@ -297,11 +297,7 @@ VersionSpec::tilde_compare(const VersionSpec & other) const
bool
VersionSpec::equal_star_compare(const VersionSpec & other) const
{
- for (unsigned i(0) ; i < other._implementation->max_star_count ; ++i)
- if (_implementation->version_parts[i] != other._implementation->version_parts[i])
- return false;
-
- return true;
+ return std::equal(other._implementation->text.begin(), other._implementation->text.end(), _implementation->text.begin());
}
std::size_t