Add Repository::name as we also provide Repository::alias
authorMichael Andres <ma@suse.de>
Thu, 25 Jun 2009 12:07:32 +0000 (14:07 +0200)
committerMichael Andres <ma@suse.de>
Thu, 25 Jun 2009 12:07:32 +0000 (14:07 +0200)
zypp/Repository.cc
zypp/Repository.h

index 7294e40..a72bce6 100644 (file)
@@ -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 );
index 1be3f4f..5976c8e 100644 (file)
@@ -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
          *