- displaying repo name instead of alias where appropriate (#304659)
authorJan Kupec <jkupec@suse.cz>
Tue, 28 Aug 2007 17:19:39 +0000 (17:19 +0000)
committerJan Kupec <jkupec@suse.cz>
Tue, 28 Aug 2007 17:19:39 +0000 (17:19 +0000)
src/zypper-info.cc
src/zypper-media-callbacks.h
src/zypper-sources.cc

index 6e1060c..0ff8a1a 100644 (file)
@@ -90,7 +90,7 @@ Copy and modify /usr/share/vim/current/gvimrc to ~/.gvimrc if needed.
 void printPkgInfo(const PoolItem & pool_item, const PoolItem & ins_pool_item) {
 
   cout << (gSettings.is_rug_compatible ? _("Catalog: ") : _("Repository: "))
-       << pool_item.resolvable()->repository().info().alias() << endl;
+       << pool_item.resolvable()->repository().info().name() << endl;
   cout << _("Name: ") << pool_item.resolvable()->name() << endl;
   cout << _("Version: ") << pool_item.resolvable()->edition().asString() << endl;
   cout << _("Arch: ") << pool_item.resolvable()->arch().asString() << endl;
index 84a9a52..0f8108b 100644 (file)
@@ -45,7 +45,7 @@ namespace ZmartRecipients
       // TranslatorExplanation translate letters 'y' and 'n' the same as you translated the [y/n] prompt. 
       std::string request = boost::str(boost::format(
           _("Please insert media [%s] # %d and type 'y' to continue or 'n' to cancel the operation."))
-          % repo.info().alias() % mediumNr);
+          % repo.info().name() % mediumNr);
       if (read_bool_answer(request, false))
         return MediaChangeReport::RETRY; 
       else
index 8d7ba05..54391a2 100644 (file)
@@ -714,7 +714,7 @@ int add_repo(RepoInfo & repo)
   {
     cout_n << ( repo.enabled() ? "[x]" : "[ ]" );
     cout_n << ( repo.autorefresh() ? "* " : "  " );
-    cout_n << repo.alias() << " (" << *repo.baseUrlsBegin() << ")" << endl;
+    cout_n << repo.name() << " (" << *repo.baseUrlsBegin() << ")" << endl;
   }
   else
   {