aboutsummaryrefslogtreecommitdiff
path: root/paludis/repositories/virtuals
diff options
context:
space:
mode:
authorAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2010-02-24 14:55:03 +0000
committerAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2010-02-24 17:39:09 +0000
commit6abaa6bfc93d9c0102dced2f866cdd6c7896291f (patch)
tree2490fbf81a6b8c31cff2748fe16c0d7c89a244a4 /paludis/repositories/virtuals
parent22b6342f29a78c9e81361dbae756406b113150c4 (diff)
downloadpaludis-6abaa6bfc93d9c0102dced2f866cdd6c7896291f.tar.gz
paludis-6abaa6bfc93d9c0102dced2f866cdd6c7896291f.tar.xz
idcf_no_name
Diffstat (limited to 'paludis/repositories/virtuals')
-rw-r--r--paludis/repositories/virtuals/package_id.cc4
1 files changed, 4 insertions, 0 deletions
diff --git a/paludis/repositories/virtuals/package_id.cc b/paludis/repositories/virtuals/package_id.cc
index 9e3d3e26e..3a4c591a0 100644
--- a/paludis/repositories/virtuals/package_id.cc
+++ b/paludis/repositories/virtuals/package_id.cc
@@ -234,6 +234,10 @@ VirtualsPackageID::canonical_form(const PackageIDCanonicalForm f) const
case idcf_version:
return stringify(_imp->version) + " (for " + stringify(_imp->virtual_for->value()->canonical_form(idcf_no_version)) + ")";
+ case idcf_no_name:
+ return stringify(_imp->version) + "::" + stringify(_imp->repository->name()) +
+ " (virtual for " + stringify(*_imp->virtual_for->value()) + ")";
+
case last_idcf:
break;
}