aboutsummaryrefslogtreecommitdiff
path: root/paludis/repositories/e/ebuild_id.cc
diff options
context:
space:
mode:
Diffstat (limited to 'paludis/repositories/e/ebuild_id.cc')
-rw-r--r--paludis/repositories/e/ebuild_id.cc7
1 files changed, 7 insertions, 0 deletions
diff --git a/paludis/repositories/e/ebuild_id.cc b/paludis/repositories/e/ebuild_id.cc
index 958a070..390fcd7 100644
--- a/paludis/repositories/e/ebuild_id.cc
+++ b/paludis/repositories/e/ebuild_id.cc
@@ -589,6 +589,13 @@ EbuildID::canonical_form(const PackageIDCanonicalForm f) const
case idcf_version:
return stringify(version());
+ case idcf_no_name:
+ if (_imp->slot)
+ return stringify(version()) + ":" + stringify(_imp->slot->value()) + "::" +
+ stringify(repository()->name());
+
+ return stringify(version()) + "::" + stringify(repository()->name());
+
case last_idcf:
break;
}