aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2011-04-15 00:23:45 +0100
committerAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2011-04-15 00:23:45 +0100
commitbfabefff08d7ed0ccd9acea96ae77db7d9811be0 (patch)
treefbbd000b13c5cb76c6244b032bf15543a303018e
parentebd4ab66765babdd900311316e7f18dfd74b57de (diff)
downloadpaludis-bfabefff08d7ed0ccd9acea96ae77db7d9811be0.tar.gz
paludis-bfabefff08d7ed0ccd9acea96ae77db7d9811be0.tar.xz
Keep package requirements near the front
-rw-r--r--paludis/dep_spec_data.cc6
1 files changed, 3 insertions, 3 deletions
diff --git a/paludis/dep_spec_data.cc b/paludis/dep_spec_data.cc
index 511c8aa..346524e 100644
--- a/paludis/dep_spec_data.cc
+++ b/paludis/dep_spec_data.cc
@@ -127,7 +127,7 @@ MutablePackageDepSpecData::~MutablePackageDepSpecData() = default;
MutablePackageDepSpecData &
MutablePackageDepSpecData::require_package(const QualifiedPackageName & name)
{
- _imp->requirements->push_back(NameRequirementPool::get_instance()->create(name));
+ _imp->requirements->push_front(NameRequirementPool::get_instance()->create(name));
return *this;
}
@@ -147,7 +147,7 @@ MutablePackageDepSpecData::unrequire_package()
MutablePackageDepSpecData &
MutablePackageDepSpecData::require_package_name_part(const PackageNamePart & part)
{
- _imp->requirements->push_back(PackageNamePartRequirementPool::get_instance()->create(part));
+ _imp->requirements->push_front(PackageNamePartRequirementPool::get_instance()->create(part));
return *this;
}
@@ -167,7 +167,7 @@ MutablePackageDepSpecData::unrequire_package_name_part()
MutablePackageDepSpecData &
MutablePackageDepSpecData::require_category_name_part(const CategoryNamePart & part)
{
- _imp->requirements->push_back(CategoryNamePartRequirementPool::get_instance()->create(part));
+ _imp->requirements->push_front(CategoryNamePartRequirementPool::get_instance()->create(part));
return *this;
}