aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2010-07-02 15:24:50 +0100
committerAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2010-07-02 15:24:50 +0100
commita366bc8fb1e67bed0e19c3ed1ba8a06f90231811 (patch)
treebd661f66d660dc8052f33269d81e55081105d7f5
parent50f8ce204e79dde19987b547f668e8bf3459332f (diff)
downloadpaludis-a366bc8fb1e67bed0e19c3ed1ba8a06f90231811.tar.gz
paludis-a366bc8fb1e67bed0e19c3ed1ba8a06f90231811.tar.xz
Make sure uniquely identifying specs for virtuals work
-rw-r--r--paludis/repositories/virtuals/package_id.cc2
1 files changed, 2 insertions, 0 deletions
diff --git a/paludis/repositories/virtuals/package_id.cc b/paludis/repositories/virtuals/package_id.cc
index 53433f1..db0cc71 100644
--- a/paludis/repositories/virtuals/package_id.cc
+++ b/paludis/repositories/virtuals/package_id.cc
@@ -248,6 +248,8 @@ VirtualsPackageID::canonical_form(const PackageIDCanonicalForm f) const
PackageDepSpec
VirtualsPackageID::uniquely_identifying_spec() const
{
+ /* hack: ensure the slot key's loaded, so that stringify returns the full form */
+ _imp->virtual_for->value()->slot_key();
return parse_user_package_dep_spec("=" + stringify(name()) + "-" + stringify(version()) +
(slot_key() ? ":" + stringify(slot_key()->value()) : "") + "::" + stringify(repository()->name()) +
"[." + _imp->virtual_for->raw_name() + "=" + stringify(*_imp->virtual_for->value()) + "]",