aboutsummaryrefslogtreecommitdiff
path: root/src/clients/cave/format_package_id.cc
diff options
context:
space:
mode:
authorAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2012-09-14 17:40:39 +0100
committerAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2012-09-14 18:06:37 +0100
commit7ce0a00a008983de8a8e61d33d41a4f41147db9b (patch)
treeba35068b18f5745145d0eefe02df85c0cd0aa5cc /src/clients/cave/format_package_id.cc
parent2bff9772cc069fe98e281432bddd0b35c1e934e4 (diff)
downloadpaludis-7ce0a00a008983de8a8e61d33d41a4f41147db9b.tar.gz
paludis-7ce0a00a008983de8a8e61d33d41a4f41147db9b.tar.xz
Refactor to allow subslots
Diffstat (limited to 'src/clients/cave/format_package_id.cc')
-rw-r--r--src/clients/cave/format_package_id.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/clients/cave/format_package_id.cc b/src/clients/cave/format_package_id.cc
index f6a00583a..d48288b6b 100644
--- a/src/clients/cave/format_package_id.cc
+++ b/src/clients/cave/format_package_id.cc
@@ -30,6 +30,7 @@
#include <paludis/package_id.hh>
#include <paludis/version_spec.hh>
#include <paludis/dep_spec.hh>
+#include <paludis/slot.hh>
#include <string>
using namespace paludis;
@@ -44,7 +45,7 @@ paludis::cave::format_package_id(
m->insert('c', stringify(id->name().category()));
m->insert('p', stringify(id->name().package()));
m->insert('v', stringify(id->version()));
- m->insert('s', id->slot_key() ? stringify(id->slot_key()->parse_value()) : "");
+ m->insert('s', id->slot_key() ? stringify(id->slot_key()->parse_value().raw_value()) : "");
m->insert(':', id->slot_key() ? ":" : "");
m->insert('r', stringify(id->repository_name()));
m->insert('F', id->canonical_form(idcf_full));