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();
}
////////////////////////////////////////////////////////////////////////////
Locale toReturn( lang );
if ( lang == Locale::noCode )
{
- toReturn = ZConfig::instance().defaultTextLocale();
+ toReturn = ZConfig::instance().textLocale();
}
do
// 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 );
/** 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
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();