aboutsummaryrefslogtreecommitdiff
path: root/paludis/resolver/get_sameness.cc
diff options
context:
space:
mode:
Diffstat (limited to 'paludis/resolver/get_sameness.cc')
-rw-r--r--paludis/resolver/get_sameness.cc9
1 files changed, 7 insertions, 2 deletions
diff --git a/paludis/resolver/get_sameness.cc b/paludis/resolver/get_sameness.cc
index 8ed6d00b7..dfb68f399 100644
--- a/paludis/resolver/get_sameness.cc
+++ b/paludis/resolver/get_sameness.cc
@@ -79,7 +79,7 @@ namespace
}
}
-std::tuple<bool, bool, bool>
+ExistingPackageIDAttributes
paludis::resolver::get_sameness(
const std::shared_ptr<const PackageID> & existing_id,
const std::shared_ptr<const PackageID> & installable_id)
@@ -152,6 +152,11 @@ paludis::resolver::get_sameness(
is_same_metadata = is_same_metadata && is_same_dependencies(existing_id->dependencies_key(), installable_id->dependencies_key());
}
- return std::make_tuple(is_same_version, is_same, is_same_metadata);
+ ExistingPackageIDAttributes attrs;
+ if (is_same_version) attrs += epia_is_same_version;
+ if (is_same) attrs += epia_is_same;
+ if (is_same_metadata) attrs += epia_is_same_metadata;
+
+ return attrs;
}