aboutsummaryrefslogtreecommitdiff
path: root/src/clients/cave/format_package_id.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/clients/cave/format_package_id.cc')
-rw-r--r--src/clients/cave/format_package_id.cc4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/clients/cave/format_package_id.cc b/src/clients/cave/format_package_id.cc
index e229ec86c..f6a00583a 100644
--- a/src/clients/cave/format_package_id.cc
+++ b/src/clients/cave/format_package_id.cc
@@ -3,7 +3,7 @@
/*
* Copyright (c) 2011 Alex Elsayed
* Based in part on format_plain_metadata_key.hh, which is
- * Copyright (c) 2008, 2010 Ciaran McCreesh
+ * Copyright (c) 2008, 2010, 2011 Ciaran McCreesh
*
* This file is part of the Paludis package manager. Paludis is free software;
* you can redistribute it and/or modify it under the terms of the GNU General
@@ -29,6 +29,7 @@
#include <paludis/util/stringify.hh>
#include <paludis/package_id.hh>
#include <paludis/version_spec.hh>
+#include <paludis/dep_spec.hh>
#include <string>
using namespace paludis;
@@ -50,6 +51,7 @@ paludis::cave::format_package_id(
m->insert('V', id->canonical_form(idcf_version));
m->insert('W', id->canonical_form(idcf_no_version));
m->insert('N', id->canonical_form(idcf_no_name));
+ m->insert('u', stringify(id->uniquely_identifying_spec()));
return format_string(format, m);
}