12 #ifndef ZYPP_ZCONFIG_H
13 #define ZYPP_ZCONFIG_H
66 std::ostream &
about( std::ostream & str )
const;
434 #endif // ZYPP_ZCONFIG_H
static Locale defaultTextLocale()
The autodetected prefered locale for translated texts.
void setUpdateMessagesNotify(const std::string &val_r)
Set a new command definition (see update.messages.notify in zypp.conf).
void resetSystemArchitecture()
Reset the zypp system architecture to the default.
static ZConfig & instance()
Singleton ctor.
std::ostream & about(std::ostream &str) const
Print some detail about the current libzypp version.
std::string distroverpkg() const
Package telling the "product version" on systems not using /etc/product.d/baseproduct.
unsigned solver_upgradeTestcasesToKeep() const
When committing a dist upgrade (e.g.
Pathname knownServicesPath() const
Path where the known services .service files are kept (configPath()/services.d).
Pathname vendorPath() const
Directory for equivalent vendor definitions (configPath()/vendors.d)
Pathname repoCachePath() const
Path where the caches are kept (/var/cache/zypp)
Pathname credentialsGlobalFile() const
Defaults to /etc/zypp/credentials.cat.
void removeMultiversionSpec(const std::string &name_r)
void setSystemArchitecture(const Arch &arch_r)
Override the zypp system architecture.
bool apply_locks_file() const
Whether locks file should be read and applied after start (true)
long download_max_download_speed() const
Maximum download speed (bytes per second)
bool setUserData(const std::string &str_r)
Set a new userData string.
bool solver_cleandepsOnRemove() const
Whether removing a package should also remove no longer needed requirements.
bool repo_add_probe() const
Whether repository urls should be probed.
void resetSolverUpgradeRemoveDroppedPackages()
Reset solverUpgradeRemoveDroppedPackages to the zypp.conf default.
Pathname pluginsPath() const
Defaults to /usr/lib/zypp/plugins.
RW_pointer< Impl, rw_pointer::Scoped< Impl > > _pimpl
Pointer to implementation.
bool solverUpgradeRemoveDroppedPackages() const
Whether dist upgrade should remove a products dropped packages (true).
DownloadMode commit_downloadMode() const
Commit download policy to use as default.
void addMultiversionSpec(const std::string &name_r)
void set_download_media_prefer_download(bool yesno_r)
Set download_media_prefer_download to a specific value.
Pathname configPath() const
Path where the configfiles are kept (/etc/zypp).
Pathname historyLogFile() const
Path where ZYpp install history is logged.
void setTextLocale(const Locale &locale_r)
Set the prefered locale for translated texts.
boost::noncopyable NonCopyable
Ensure derived classes cannot be copied.
Pathname knownReposPath() const
Path where the known repositories .repo files are kept (configPath()/repos.d).
LocaleSet repoRefreshLocales() const
List of locales for which translated package descriptions should be downloaded.
void set_default_download_media_prefer_download()
Set download_media_prefer_download to the configfiles default.
Provides API related macros.
Interim helper class to collect global options and settings.
Pathname update_scriptsPath() const
Path where the repo metadata is downloaded and kept (update_dataPath()/).
Pathname locksFile() const
Path where zypp can find or create lock file (configPath()/locks)
std::tr1::unordered_set< Locale > LocaleSet
long download_min_download_speed() const
Minimum download speed (bytes per second) until the connection is dropped.
void clearMultiversionSpec()
bool hasUserData() const
Whether a (non empty) user data sting is defined.
Pathname update_messagesPath() const
Path where the repo solv files are created and kept (update_dataPath()/solv).
Pathname repoSolvfilesPath() const
Path where the repo solv files are created and kept (repoCachePath()/solv).
Pathname repoPackagesPath() const
Path where the repo packages are downloaded and kept (repoCachePath()/packages).
bool download_use_deltarpm() const
Whether to consider using a deltarpm when downloading a package.
Pathname repoMetadataPath() const
Path where the repo metadata is downloaded and kept (repoCachePath()/raw).
long download_max_silent_tries() const
Maximum silent tries.
bool solver_allowVendorChange() const
Whether vendor check is by default enabled.
bool solver_onlyRequires() const
Solver regards required packages,patterns,...
static Arch defaultSystemArchitecture()
The autodetected system architecture.
Pathname systemRoot() const
The target root directory.
bool download_media_prefer_download() const
Hint which media to prefer when installing packages (download vs.
const std::set< std::string > & multiversionSpec() const
target::rpm::RpmInstFlags rpmInstallFlags() const
The default target::rpm::RpmInstFlags for ZYppCommitPolicy.
Wrapper for const correct access via Smart pointer types.
Pathname update_dataPath() const
Path where the update items are kept (/var/adm)
std::string userData() const
User defined string value to be passed to log, history, plugins...
void resetTextLocale()
Reset the locale for translated texts to the default.
void resetUpdateMessagesNotify()
Reset to the zypp.conf default.
void setSolverUpgradeRemoveDroppedPackages(bool val_r)
Set solverUpgradeRemoveDroppedPackages to val_r.
Locale textLocale() const
The locale for translated texts zypp uses.
std::string updateMessagesNotify() const
Command definition for sending update messages.
unsigned repo_refresh_delay() const
Amount of time in minutes that must pass before another refresh.
Arch systemArchitecture() const
The system architecture zypp uses.
bool repoLabelIsAlias() const
Whether to use repository alias or name in user messages (progress, exceptions, ...).
long download_max_concurrent_connections() const
Maximum number of concurrent connections for a single transfer.
Pathname solver_checkSystemFile() const
File in which dependencies described which has to be fulfilled for a running system.
bool download_use_deltarpm_always() const
Whether to consider using a deltarpm even when rpm is local.
long download_transfer_timeout() const
Maximum time in seconds that you allow a transfer operation to take.
Pathname credentialsGlobalDir() const
Defaults to /etc/zypp/credentials.d.
DownloadMode
Supported commit download policies.
bool download_media_prefer_volatile() const