Pkg: qualified ID accessor.

This commit is contained in:
James Turner 2014-06-12 08:50:09 +01:00
parent dd2bf418b9
commit 083b364afd
2 changed files with 10 additions and 0 deletions

View File

@ -135,6 +135,11 @@ std::string Package::id() const
return m_props->getStringValue("id");
}
std::string Package::qualifiedId() const
{
return m_catalog->id() + "." + id();
}
std::string Package::md5() const
{
return m_props->getStringValue("md5");

View File

@ -59,6 +59,11 @@ public:
bool isInstalled() const;
std::string id() const;
/**
* Fully-qualified ID, including our catalog'd ID
*/
std::string qualifiedId() const;
/**
* human-readable name - note this is probably not localised,