zconfig: default* -> *, they are not default anymore as the user can
authorDuncan Mac-Vicar P <dmacvicar@suse.de>
Fri, 27 Jul 2007 11:30:41 +0000 (11:30 +0000)
committerDuncan Mac-Vicar P <dmacvicar@suse.de>
Fri, 27 Jul 2007 11:30:41 +0000 (11:30 +0000)
set them in the conf file

zypp/RepoManager.cc
zypp/TranslatedText.cc
zypp/ZConfig.cc
zypp/ZConfig.h
zypp/parser/susetags/RepoParser.cc

index fafd979..ce7d069 100644 (file)
@@ -57,9 +57,9 @@ namespace zypp
 
   RepoManagerOptions::RepoManagerOptions()
   {
-    repoCachePath    = ZConfig::instance().defaultRepoCachePath();
-    repoRawCachePath = ZConfig::instance().defaultRepoMetadataPath();
-    knownReposPath   = ZConfig::instance().defaultKnownReposPath();
+    repoCachePath    = ZConfig::instance().repoCachePath();
+    repoRawCachePath = ZConfig::instance().repoMetadataPath();
+    knownReposPath   = ZConfig::instance().knownReposPath();
   }
 
   ////////////////////////////////////////////////////////////////////////////
index d6b7d8a..a8b44bb 100644 (file)
@@ -52,7 +52,7 @@ namespace zypp
       Locale toReturn( lang );
       if ( lang == Locale::noCode )
       {
-        toReturn = ZConfig::instance().defaultTextLocale();
+        toReturn = ZConfig::instance().textLocale();
       }
 
       do
index 9076a2e..c2c451e 100644 (file)
@@ -151,24 +151,24 @@ namespace zypp
   //   METHOD NAME : ZConfig::defaultTextLocale
   //   METHOD TYPE : Locale
   //
-  Locale ZConfig::defaultTextLocale() const
+  Locale ZConfig::textLocale() const
   {
     return getZYpp()->getTextLocale();
   }
 
-  Pathname ZConfig::defaultRepoMetadataPath() const
+  Pathname ZConfig::repoMetadataPath() const
   {
     return ( _pimpl->cfg_metadata_path.empty() 
         ? Pathname("/var/cache/zypp/raw") : _pimpl->cfg_metadata_path );
   }
 
-  Pathname ZConfig::defaultRepoCachePath() const
+  Pathname ZConfig::repoCachePath() const
   {
     return ( _pimpl->cfg_cache_path.empty() 
         ? Pathname("/var/cache/zypp") : _pimpl->cfg_cache_path );
   }
 
-  Pathname ZConfig::defaultKnownReposPath() const
+  Pathname ZConfig::knownReposPath() const
   {
     return ( _pimpl->cfg_known_repos_path.empty() 
         ? Pathname("/etc/zypp/repos.d") : _pimpl->cfg_known_repos_path );
index 05c6af6..ec77784 100644 (file)
@@ -48,24 +48,24 @@ namespace zypp
       /** The prefered locale for translated labels, descriptions,
        *  descriptions, etc. passed to the UI.
        */
-      Locale defaultTextLocale() const;
+      Locale textLocale() const;
 
       /**
        * Path where the repo metadata is downloaded and kept.
        */
-      Pathname defaultRepoMetadataPath() const;
+      Pathname repoMetadataPath() const;
 
       /**
        * Path where the processed cache is kept
        * (this is where zypp.db is located.
        */
-      Pathname defaultRepoCachePath() const;
+      Pathname repoCachePath() const;
 
       /**
        * Path where the known repositories
        * .repo files are kept
        */
-      Pathname defaultKnownReposPath() const;
+      Pathname knownReposPath() const;
 
       /**
        * Separator string for storing/reading sets of strings to/from
index f143d0b..65269b0 100644 (file)
@@ -396,7 +396,7 @@ namespace zypp
        parseLocaleIf( Locale("en") );
        // For each wanted locale at least
        // some fallback, if locale is not present.
-       parseLocaleIf( ZConfig::instance().defaultTextLocale() );
+       parseLocaleIf( ZConfig::instance().textLocale() );
 
         // Now process the rest of RepoIndex
        for ( RepoIndex::FileChecksumMap::const_iterator it = _repoIndex->metaFileChecksums.begin();