Mailinglist Archive: zypp-commit (171 mails)

< Previous Next >
[zypp-commit] <libzypp> master : Add Repository::name as we also provide Repository::alias
  • From: Michael Andres <ma@xxxxxxx>
  • Date: Thu, 25 Jun 2009 14:07:32 +0200
  • Message-id: <E1MK8xV-000793-3j@xxxxxxxxxxxxxxxx>
ref: refs/heads/master
commit 2dc507ffbe7598da605a4e832d9d1b37e22282f7
Author: Michael Andres <ma@xxxxxxx>
Date: Thu Jun 25 14:07:32 2009 +0200

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
*
--
To unsubscribe, e-mail: zypp-commit+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: zypp-commit+help@xxxxxxxxxxxx

< Previous Next >
This Thread
  • No further messages