From 2dc507ffbe7598da605a4e832d9d1b37e22282f7 Mon Sep 17 00:00:00 2001 From: Michael Andres Date: Thu, 25 Jun 2009 14:07:32 +0200 Subject: [PATCH] Add Repository::name as we also provide Repository::alias --- zypp/Repository.cc | 3 +++ zypp/Repository.h | 7 +++++-- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/zypp/Repository.cc b/zypp/Repository.cc index 7294e40..a72bce6 100644 --- a/zypp/Repository.cc +++ b/zypp/Repository.cc @@ -61,6 +61,9 @@ namespace zypp return _repo->name; } + std::string Repository::name() const + { return info().name(); } + zypp::Date Repository::generatedTimestamp() const { NO_REPOSITORY_RETURN( 0 ); diff --git a/zypp/Repository.h b/zypp/Repository.h index 1be3f4f..5976c8e 100644 --- a/zypp/Repository.h +++ b/zypp/Repository.h @@ -70,16 +70,19 @@ namespace zypp public: /** - * Short unique, convenience string to refer to a repo. + * Short unique string to identify a repo. * ie: openSUSE-10.3 * * If you are looking for a label to display - * see \ref info() which provides \ref RepoInfo::name() + * see \ref name(). * ie: "openSUSE 10.3 Main repository" * */ std::string alias() const; + /** Label to display for this repo. */ + std::string name() const; + /** * Timestamp when this repository was generated * -- 2.7.4