|
libzypp 17.38.5
|
Namespaces | |
| namespace | repo |
| namespace | PlaindirWorkflows |
| namespace | RepoDownloaderWorkflow |
| namespace | RepoManagerWorkflow |
| namespace | RpmmdWorkflows |
| Downloader workspace for YUM (rpm-nmd) repositories Encapsulates all the knowledge of which files have to be downloaded to the local disk. | |
| namespace | RepoServicesWorkflow |
| namespace | SuseTagsWorkflows |
| Download workflow namespace for SUSETags (YaST2) repositories Encapsulates all the knowledge of which files have to be downloaded to the local disk and how to calculate the repo status. | |
| namespace | env |
| namespace | detail |
| namespace | AcceptNoDigestRequest |
| namespace | AcceptUnknownDigestRequest |
| namespace | AcceptWrongDigestRequest |
| namespace | AcceptKeyRequest |
| namespace | VerifyInfoEvent |
| namespace | AcceptUnsignedFileRequest |
| namespace | AcceptUnknownKeyRequest |
| Ask the user to accept a unknown key. | |
| namespace | AcceptFailedVerificationRequest |
| Ask the user to accept a file that is signed but where the signature verification failed. | |
| namespace | AcceptPackageKeyRequest |
| Ask user to trust and/or import the package key to trusted keyring. | |
| namespace | NonImportedKeysInfoEvent |
| Notify the user about keys that were not imported from the rpm key database into zypp keyring. | |
| namespace | KeyAutoImportInfoEvent |
| Notify that a repository auto imported new package signing keys. | |
| namespace | CheckSumWorkflow |
| namespace | DownloadWorkflow |
| namespace | KeyRingWorkflow |
| namespace | RepoInfoWorkflow |
| namespace | SignatureFileCheckWorkflow |
| namespace | internal |
| namespace | str |
| namespace | constants |
| namespace | operators |
| namespace | rpc |
Enumerations | |
| enum | { DefChunkSize = 4096 } |
| enum | { DefIoDeviceBufChunkSize = 16384 } |
| enum class | UserRequestType : uint { Message , ListChoice , BooleanChoice , KeyTrust , Custom = 512 } |
Functions | |
| ZYPP_FWD_DECL_TYPE_WITH_REFS (EventDispatcher) | |
| ZYPP_FWD_DECL_TYPE_WITH_REFS (NetworkRequestDispatcher) | |
| ZYPP_FWD_DECL_TYPE_WITH_REFS (NetworkRequest) | |
| ZYPP_IMPL_PRIVATE_CONSTR (Context) | |
| ZYPP_FWD_DECL_TYPE_WITH_REFS (Context) | |
| template<typename T> | |
| auto | joinPipeline (ContextRef ctx, T &&val) |
| IMPL_PTR_TYPE (AttachedMediaInfo) | |
| ZYPP_IMPL_PRIVATE_CONSTR (Provide) | |
| ZYPP_FWD_DECL_TYPE_WITH_REFS (Provide) | |
| DEFINE_PTR_TYPE (AttachedMediaInfo) | |
| ZYPP_FWD_DECL_TYPE_WITH_REFS (SyncContext) | |
| ZYPP_FWD_DECL_TYPE_WITH_REFS (ProgressObserver) | |
| std::ostream & | operator<< (std::ostream &str, zypp::RepoManagerFlags::RawMetadataRefreshPolicy obj) |
| std::ostream & | operator<< (std::ostream &str, zypp::RepoManagerFlags::RefreshCheckStatus obj) |
| std::ostream & | operator<< (std::ostream &str, zypp::RepoManagerFlags::CacheBuildPolicy obj) |
| std::string | filenameFromAlias (const std::string &alias_r, const std::string &stem_r) |
| Generate a related filename from a repo/service infos alias. | |
| expected< std::list< RepoInfo > > | repositories_in_file (const zypp::Pathname &file) |
| Reads RepoInfo's from a repo file. | |
| template<typename ZContextRef> | |
| std::list< RepoInfo > | repositories_in_dir (ZContextRef zyppContext, const zypp::Pathname &dir) |
| List of RepoInfo's from a directory. | |
| expected< void > | assert_urls (const RepoInfo &info) |
| bool | autoPruneInDir (const zypp::Pathname &path_r) |
| bsc#1204956: Tweak to prevent auto pruning package caches. | |
| void | cleanupNonRepoMetadtaFolders (const zypp::Pathname &cachePath_r, const zypp::Pathname &defaultCachePath_r, const std::list< std::string > &repoEscAliases_r) |
| Generate a non existing filename in a directory, using a base name. | |
| ZYPP_FWD_DECL_TYPE_WITH_REFS (RepoManager) | |
| bool | isTmpRepo (const RepoInfo &info_r) |
| Whether repo is not under RM control and provides its own methadata paths. | |
| expected< void > | assert_alias (const RepoInfo &info) |
| expected< void > | assert_alias (const ServiceInfo &info) |
| template<class Iterator> | |
| bool | foundAliasIn (const std::string &alias_r, Iterator begin_r, Iterator end_r) |
| Check if alias_r is present in repo/service container. | |
| template<class Container> | |
| bool | foundAliasIn (const std::string &alias_r, const Container &cont_r) |
| This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts. | |
| template<class Iterator> | |
| Iterator | findAlias (const std::string &alias_r, Iterator begin_r, Iterator end_r) |
| Find alias_r in repo/service container. | |
| template<class Container> | |
| Container::iterator | findAlias (const std::string &alias_r, Container &cont_r) |
| This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts. | |
| template<class Container> | |
| Container::const_iterator | findAlias (const std::string &alias_r, const Container &cont_r) |
| This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts. | |
| expected< void > | assert_url (const ServiceInfo &info) |
| expected< zypp::Pathname > | rawcache_path_for_repoinfo (const RepoManagerOptions &opt, const RepoInfo &info) |
| Calculates the raw cache path for a repository, this is usually /var/cache/zypp/alias. | |
| expected< zypp::Pathname > | rawproductdata_path_for_repoinfo (const RepoManagerOptions &opt, const RepoInfo &info) |
| Calculates the raw product metadata path for a repository, this is inside the raw cache dir, plus an optional path where the metadata is. | |
| expected< zypp::Pathname > | packagescache_path_for_repoinfo (const RepoManagerOptions &opt, const RepoInfo &info) |
| Calculates the packages cache path for a repository. | |
| expected< zypp::Pathname > | solv_path_for_repoinfo (const RepoManagerOptions &opt, const RepoInfo &info) |
| Calculates the solv cache path for a repository. | |
| ZYPP_FWD_DECL_REFS (Context) | |
| ZYPP_IMPL_PRIVATE_CONSTR_ARGS (TrustKeyRequest, std::string label, KeyTrust trust, UserData userData) | |
| ZYPP_FWD_DECL_TYPE_WITH_REFS (TrustKeyRequest) | |
| ZYPP_FWD_DECL_TYPE_WITH_REFS (CacheProviderContext) | |
| template<typename Obj, typename Functor, std::enable_if_t< std::is_base_of_v< Base, Obj >||std::is_base_of_v< BasePrivate, Obj >, bool > = true> | |
| decltype(auto) | base_slot (Obj *o, Functor &&f) |
| template<typename Obj, typename Functor, std::enable_if_t< std::is_base_of_v< Base, Obj >||std::is_base_of_v< BasePrivate, Obj >, bool > = true> | |
| decltype(auto) | base_slot (Obj &o, Functor &&f) |
| ZYPP_FWD_DECL_TYPE_WITH_REFS (UnixSignalSource) | |
| static int | readMask () |
| static int | writeMask () |
| static int | excpMask () |
| static int | evModeToMask (int mode) |
| static int | gioConditionToEventTypes (const GIOCondition rEvents, const int requestedEvs) |
| static gboolean | eventLoopIdleFunc (gpointer user_data) |
| Called when the event loop is idle, here we run cleanup tasks and call later() callbacks of the user. | |
| ZYPP_FWD_DECL_TYPE_WITH_REFS (EventLoop) | |
| bool | blockAllSignalsForCurrentThread () |
| bool | blockSignalsForCurrentThread (const std::vector< int > &sigs) |
| bool | trySocketConnection (int &sockFD, const SockAddr &addr, uint64_t timeout) |
| void | renumberFd (int origfd, int newfd) |
| int64_t | bytesAvailableOnFD (int fd) |
| std::string | strerr_cxx (const int err=-1) |
| template<typename Fun, typename RestartCb, typename... Args> | |
| auto | eintrSafeCallEx (const Fun &function, const RestartCb &restartCb, Args &&... args) |
| template<typename Fun, typename... Args> | |
| auto | eintrSafeCall (Fun &&function, Args &&... args) |
| ThreadData & | threadData () |
| constexpr bool | DefaultStateCondition (true) |
| constexpr std::nullptr_t | DefaultStateTransition (nullptr) |
| ZYPP_FWD_DECL_TYPE_WITH_REFS (Timer) | |
| ZYPP_IMPL_PRIVATE (UnixSignalSource) | |
| std::unique_ptr< zyppng::AbstractSpawnEngine > | engineFromEnv () |
| ZYPP_FWD_DECL_TYPE_WITH_REFS (IODevice) | |
| ZYPP_DECLARE_OPERATORS_FOR_FLAGS (IODevice::OpenMode) | |
| ZYPP_FWD_DECL_TYPE_WITH_REFS (Process) | |
| ZYPP_FWD_DECL_REFS (Socket) | |
| template<class Transformation, class DefaultType, class Predicate> | |
| auto | firstOf (Transformation &&transformFunc, DefaultType &&def, Predicate &&predicate=detail::ContinueUntilValidPredicate()) |
| template<typename ... Excpt> | |
| bool | containsOneOfException (const std::exception_ptr &exceptionPtr) |
| template<typename Excpt> | |
| bool | containsException (const std::exception_ptr &exceptionPtr) |
| template<class E> | |
| unexpected (E) -> unexpected< E > | |
| template<typename Type, typename Err = std::exception_ptr> | |
| static expected< std::decay_t< Type >, Err > | make_expected_success (Type &&t) |
| template<typename T, typename E, typename Function, typename ResultType = detail::mbind_cb_result_t<Function, T>> | |
| ResultType | and_then (const expected< T, E > &exp, Function &&f) |
| template<typename T, typename E, typename Function, typename ResultType = detail::mbind_cb_result_t<Function, T>> | |
| ResultType | and_then (expected< T, E > &&exp, Function &&f) |
| template<typename T, typename E, typename Function, typename ResultType = detail::mbind_cb_result_t<Function, E>> | |
| ResultType | or_else (const expected< T, E > &exp, Function &&f) |
| template<typename T, typename E, typename Function, typename ResultType = detail::mbind_cb_result_t<Function, E>> | |
| ResultType | or_else (expected< T, E > &&exp, Function &&f) |
| template<template< class, class... > class Container, typename T, typename E, typename ... CArgs> | |
| std::enable_if_t<!std::is_same_v< void, T >, expected< Container< T >, E > > | collect (Container< expected< T, E >, CArgs... > &&in) |
| template<template< class, class... > class Container, typename T, typename E, typename ... CArgs> | |
| std::enable_if_t< std::is_same_v< void, T >, expected< T, E > > | collect (Container< expected< T, E >, CArgs... > &&in) |
| template<typename T, typename E, typename Function> | |
| expected< T, E > | inspect (expected< T, E > exp, Function &&f) |
| template<typename T, typename E, typename Function> | |
| expected< T, E > | inspect_err (expected< T, E > exp, Function &&f) |
| template<template< class, class... > class Container, typename Msg, typename Transformation, typename Ret = std::result_of_t<Transformation(Msg)>, typename ... CArgs> | |
| std::enable_if_t< is_instance_of_v< expected, Ret >, expected< Container< typename Ret::value_type > > > | transform_collect (Container< Msg, CArgs... > &&in, Transformation &&f) |
| template<typename Fun> | |
| auto | lift (Fun &&func) |
| template<typename F, typename ... Args, typename Ret = std::invoke_result_t<F, Args...>, typename Exp = expected<Ret, std::exception_ptr>> | |
| auto | mtry (F &&f, Args &&...args) |
| template<typename Task, typename Pred> | |
| auto | redo_while (Task &&todo, Pred &&until) |
| template<template< class, class... > class Container, typename Msg, typename Transformation, typename Ret = std::result_of_t<Transformation(Msg)>, typename ... CArgs> | |
| auto | transform (Container< Msg, CArgs... > &&val, Transformation &&transformation) |
| template<template< class, class... > class Container, typename Msg, typename Transformation, typename Ret = std::result_of_t<Transformation(Msg)>, typename ... CArgs> | |
| auto | transform (const Container< Msg, CArgs... > &val, Transformation &&transformation) |
| ZYPP_FWD_DECL_TYPE_WITH_REFS (StompFrameStream) | |
| ZYPP_IMPL_PRIVATE_CONSTR_ARGS (ProgressObserver, const std::string &label, int steps) | |
| ZYPP_IMPL_PRIVATE_CONSTR (UserInterface) | |
| ZYPP_FWD_DECL_TYPE_WITH_REFS (UserInterface) | |
| ZYPP_FWD_DECL_TYPE_WITH_REFS (UserRequest) | |
| ZYPP_IMPL_PRIVATE_CONSTR_ARGS (ShowMessageRequest, std::string message, MType mType, UserData data) | |
| ZYPP_IMPL_PRIVATE_CONSTR_ARGS (ListChoiceRequest, std::string label, std::vector< Choice > answers, index_type defaultAnswer, UserData userData) | |
| ZYPP_IMPL_PRIVATE_CONSTR_ARGS (BooleanChoiceRequest, std::string label, const bool defaultAnswer, UserData userData) | |
| ZYPP_FWD_DECL_TYPE_WITH_REFS (ShowMessageRequest) | |
| ZYPP_FWD_DECL_TYPE_WITH_REFS (ListChoiceRequest) | |
| ZYPP_FWD_DECL_TYPE_WITH_REFS (BooleanChoiceRequest) | |
| static const std::string & | defaultAgentString () |
| ZYPP_IMPL_PRIVATE (NetworkRequestError) | |
| ZYPP_FWD_DECL_TYPE_WITH_REFS (ZckLoader) | |
| ZYPP_FWD_DECL_TYPE_WITH_REFS (ProvideMediaSpec) | |
| ZYPP_FWD_DECL_TYPE_WITH_REFS (ProvideFileSpec) | |
| std::ostream & | operator<< (std::ostream &str, const ProvideFileSpec &obj) |
| std::ostream & | dumpOn (std::ostream &str, const ProvideFileSpec &obj) |
| std::string | strerror (int errno_r) ZYPP_API |
| Return string describing the error_r code. | |
Variables | |
| static GSourceFuncs | abstractEventSourceFuncs |
| static GSourceFuncs | glibTimerSourceFuncs |
| template<template< class ... > class Templ, class Type> | |
| constexpr bool | is_instance_of_v = is_instance_of<Templ,Type>::value |
| constexpr auto | MAX_CMDLEN = 256 |
| constexpr auto | MAX_HDRLEN = 8 * 1024 |
| constexpr auto | MAX_BODYLEN = 1024 * 1024 |
| constexpr std::string_view | CurlNativeErrorCodeDescKey = "nativeErrorCodeDesc" |
| constexpr std::string_view | CurlNativeErrorDescKey = "nativeErrorDesc" |
| using zyppng::KeyRing = zypp::KeyRing |
| using zyppng::KeyRingRef = zypp::KeyRing_Ptr |
| using zyppng::ProvideRes = Provide::Res |
| using zyppng::RepoInfo = zypp::RepoInfo |
Definition at line 38 of file repomanager.h.
| using zyppng::RepoStatus = zypp::RepoStatus |
Definition at line 39 of file repomanager.h.
|
Definition at line 40 of file repomanager.h.
| using zyppng::ServiceInfo = zypp::ServiceInfo |
Definition at line 41 of file repomanager.h.
Definition at line 42 of file repomanager.h.
Factory for Checker
Definition at line 43 of file repomanager.h.
| using zyppng::connection = sigc::connection |
| using zyppng::trackable = sigc::trackable |
| using zyppng::SignalProxyBase = sigc::signal<R(T...)> |
| using zyppng::Ref = std::shared_ptr<T> |
Definition at line 110 of file zyppglobal.h.
| using zyppng::WeakRef = std::weak_ptr<T> |
Definition at line 113 of file zyppglobal.h.
| using zyppng::ByteArray = zypp::ByteArray |
Definition at line 21 of file bytearray.h.
| using zyppng::UByteArray = zypp::UByteArray |
Definition at line 22 of file bytearray.h.
| using zyppng::IdString = zypp::IdString |
Definition at line 16 of file idstring.h.
| using zyppng::IdStringSet = zypp::IdStringSet |
Definition at line 17 of file idstring.h.
| using zyppng::Url = zypp::Url |
| using zyppng::has_call_operator = decltype (&T::operator()) |
Definition at line 69 of file function_traits.h.
| using zyppng::remove_smart_ptr_t = typename remove_smart_ptr<T>::type |
Definition at line 133 of file type_traits.h.
Definition at line 18 of file userrequest.h.
| using zyppng::ContentType = zypp::ContentType |
Definition at line 19 of file userrequest.h.
Definition at line 21 of file authdata.h.
Definition at line 22 of file authdata.h.
Definition at line 24 of file authdata.h.
Definition at line 25 of file authdata.h.
Definition at line 20 of file transfersettings.h.
| anonymous enum |
| Enumerator | |
|---|---|
| DefChunkSize | |
Definition at line 7 of file iobuffer.cc.
| anonymous enum |
| Enumerator | |
|---|---|
| DefIoDeviceBufChunkSize | |
Definition at line 31 of file iodevice_p.h.
|
strong |
| Enumerator | |
|---|---|
| Message | |
| ListChoice | |
| BooleanChoice | |
| KeyTrust | |
| Custom | |
Definition at line 34 of file userrequest.h.
| zyppng::ZYPP_FWD_DECL_TYPE_WITH_REFS | ( | EventDispatcher | ) |
| zyppng::ZYPP_FWD_DECL_TYPE_WITH_REFS | ( | NetworkRequestDispatcher | ) |
| zyppng::ZYPP_FWD_DECL_TYPE_WITH_REFS | ( | NetworkRequest | ) |
| zyppng::ZYPP_IMPL_PRIVATE_CONSTR | ( | Context | ) |
Definition at line 14 of file context.cc.
| zyppng::ZYPP_FWD_DECL_TYPE_WITH_REFS | ( | Context | ) |
| auto zyppng::joinPipeline | ( | ContextRef | ctx, |
| T && | val ) |
| zyppng::IMPL_PTR_TYPE | ( | AttachedMediaInfo | ) |
| zyppng::ZYPP_IMPL_PRIVATE_CONSTR | ( | Provide | ) |
Definition at line 156 of file provide.cc.
| zyppng::ZYPP_FWD_DECL_TYPE_WITH_REFS | ( | Provide | ) |
| zyppng::ZYPP_FWD_DECL_TYPE_WITH_REFS | ( | SyncContext | ) |
| zyppng::ZYPP_FWD_DECL_TYPE_WITH_REFS | ( | ProgressObserver | ) |
| std::ostream & zyppng::operator<< | ( | std::ostream & | str, |
| zypp::RepoManagerFlags::RawMetadataRefreshPolicy | obj ) |
Definition at line 101 of file repomanager.cc.
| std::ostream & zyppng::operator<< | ( | std::ostream & | str, |
| zypp::RepoManagerFlags::RefreshCheckStatus | obj ) |
Definition at line 113 of file repomanager.cc.
| std::ostream & zyppng::operator<< | ( | std::ostream & | str, |
| zypp::RepoManagerFlags::CacheBuildPolicy | obj ) |
Definition at line 125 of file repomanager.cc.
| std::string zyppng::filenameFromAlias | ( | const std::string & | alias_r, |
| const std::string & | stem_r ) |
Generate a related filename from a repo/service infos alias.
Definition at line 137 of file repomanager.cc.
| expected< std::list< RepoInfo > > zyppng::repositories_in_file | ( | const zypp::Pathname & | file | ) |
Reads RepoInfo's from a repo file.
| file | pathname of the file to read. |
Definition at line 167 of file repomanager.cc.
| std::list< RepoInfo > zyppng::repositories_in_dir | ( | ZContextRef | zyppContext, |
| const zypp::Pathname & | dir ) |
List of RepoInfo's from a directory.
Goes trough every file ending with ".repo" in a directory and adds all RepoInfo's contained in that file.
| zyppContext | current context used for reports |
| dir | pathname of the directory to read. |
Definition at line 189 of file repomanager.cc.
Definition at line 227 of file repomanager.cc.
| bool zyppng::autoPruneInDir | ( | const zypp::Pathname & | path_r | ) |
bsc#1204956: Tweak to prevent auto pruning package caches.
Definition at line 234 of file repomanager.cc.
|
inline |
Generate a non existing filename in a directory, using a base name.
For example if a directory contains 3 files
|– bar |– foo `– moo
If you try to generate a unique filename for this directory, based on "ruu" you will get "ruu", but if you use the base "foo" you will get "foo_1"
| dir | Directory where the file needs to be unique |
| basefilename | string to base the filename on. */ |
zypp::Pathname RepoManager::generateNonExistingName( const zypp::Pathname & dir, const std::string & basefilename ) const { std::string final_filename = basefilename; int counter = 1; while ( zypp::PathInfo(dir + final_filename).isExist() ) { final_filename = basefilename + "_" + zypp::str::numstring(counter); ++counter; } return dir + zypp::Pathname(final_filename); }
expected<void> RepoManager::touchIndexFile(const RepoInfo &info, const RepoManagerOptions &options) { try { zypp::Pathname productdatapath = rawproductdata_path_for_repoinfo( options, info ).unwrap();
zypp::repo::RepoType repokind = info.type(); if ( repokind.toEnum() == zypp::repo::RepoType::NONE_e ) unknown, probe the local metadata repokind = probeCache( productdatapath ); if still unknown, just return if (repokind == zypp::repo::RepoType::NONE_e) return expected<void>::success();
zypp::Pathname p; switch ( repokind.toEnum() ) { case zypp::repo::RepoType::RPMMD_e : p = zypp::Pathname(productdatapath + "/repodata/repomd.xml"); break;
case zypp::repo::RepoType::YAST2_e : p = zypp::Pathname(productdatapath + "/content"); break;
case zypp::repo::RepoType::RPMPLAINDIR_e : p = zypp::Pathname(productdatapath + "/cookie"); break;
case zypp::repo::RepoType::NONE_e : default: break; }
touch the file, ignore error (they are logged anyway) zypp::filesystem::touch(p); } catch ( ... ) { return expected<void>::error( ZYPP_FWD_CURRENT_EXCPT() ); } return expected<void>::success(); }
expected<void> RepoManager::refreshGeoIp( const RepoInfo::url_set &urls ) { return joinPipeline( _zyppContext, RepoManagerWorkflow::refreshGeoIPData( _zyppContext, urls) ); }
expected<void> RepoManager::touchIndexFile( const RepoInfo & info ) { return touchIndexFile( info, _options ); }
expected<void> RepoManager::init_knownServices() { try { zypp::Pathname dir = _options.knownServicesPath; std::list<zypp::Pathname> entries; if (zypp::PathInfo(dir).isExist()) { if ( zypp::filesystem::readdir( entries, dir, false ) != 0 ) { TranslatorExplanation 's' is a pathname ZYPP_THROW(zypp::Exception(zypp::str::form(_("Failed to read directory '%s'"), dir.c_str()))); }
str::regex allowedServiceExt("^\\.service(_[0-9]+)?$"); for_(it, entries.begin(), entries.end() ) { zypp::parser::ServiceFileReader(*it, ServiceCollector(_services)); } }
zypp::repo::PluginServices(_options.pluginsPath/"services", ServiceCollector(_services));
return expected<void>::success();
} catch ( ... ) { return expected<void>::error( std::current_exception () ); }
}
namespace { /** Delete cachePath_r subdirs not matching known aliases in repoEscAliases_r (must be sorted!)
Definition at line 1362 of file repomanager.cc.
| zyppng::ZYPP_FWD_DECL_TYPE_WITH_REFS | ( | RepoManager | ) |
Whether repo is not under RM control and provides its own methadata paths.
Definition at line 49 of file repomanager.h.
Definition at line 52 of file repomanager.h.
|
inline |
Definition at line 65 of file repomanager.h.
|
inline |
Check if alias_r is present in repo/service container.
Definition at line 79 of file repomanager.h.
|
inline |
This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
Definition at line 88 of file repomanager.h.
|
inline |
Find alias_r in repo/service container.
Definition at line 93 of file repomanager.h.
|
inline |
This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
Definition at line 102 of file repomanager.h.
|
inline |
This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
Definition at line 106 of file repomanager.h.
|
inline |
Definition at line 155 of file repomanager.h.
|
inline |
Calculates the raw cache path for a repository, this is usually /var/cache/zypp/alias.
Definition at line 166 of file repomanager.h.
|
inline |
Calculates the raw product metadata path for a repository, this is inside the raw cache dir, plus an optional path where the metadata is.
It should be different only for repositories that are not in the root of the media. for example /var/cache/zypp/alias/addondir
Definition at line 180 of file repomanager.h.
|
inline |
Calculates the packages cache path for a repository.
Definition at line 189 of file repomanager.h.
|
inline |
Calculates the solv cache path for a repository.
Definition at line 199 of file repomanager.h.
| zyppng::ZYPP_FWD_DECL_REFS | ( | Context | ) |
| zyppng::ZYPP_IMPL_PRIVATE_CONSTR_ARGS | ( | TrustKeyRequest | , |
| std::string | label, | ||
| KeyTrust | trust, | ||
| UserData | userData ) |
Definition at line 34 of file userrequest.cc.
| zyppng::ZYPP_FWD_DECL_TYPE_WITH_REFS | ( | TrustKeyRequest | ) |
| zyppng::ZYPP_FWD_DECL_TYPE_WITH_REFS | ( | CacheProviderContext | ) |
|
inline |
|
inline |
| zyppng::ZYPP_FWD_DECL_TYPE_WITH_REFS | ( | UnixSignalSource | ) |
|
inlinestatic |
Definition at line 13 of file eventdispatcher_glib.cc.
|
inlinestatic |
Definition at line 17 of file eventdispatcher_glib.cc.
|
inlinestatic |
Definition at line 21 of file eventdispatcher_glib.cc.
|
inlinestatic |
Definition at line 25 of file eventdispatcher_glib.cc.
|
inlinestatic |
Definition at line 39 of file eventdispatcher_glib.cc.
|
static |
Called when the event loop is idle, here we run cleanup tasks and call later() callbacks of the user.
Definition at line 231 of file eventdispatcher_glib.cc.
| zyppng::ZYPP_FWD_DECL_TYPE_WITH_REFS | ( | EventLoop | ) |
| bool zyppng::blockAllSignalsForCurrentThread | ( | ) |
Definition at line 15 of file linuxhelpers.cc.
| bool zyppng::blockSignalsForCurrentThread | ( | const std::vector< int > & | sigs | ) |
Definition at line 23 of file linuxhelpers.cc.
Definition at line 34 of file linuxhelpers.cc.
| void zyppng::renumberFd | ( | int | origfd, |
| int | newfd ) |
Definition at line 50 of file linuxhelpers.cc.
| int64_t zyppng::bytesAvailableOnFD | ( | int | fd | ) |
Tries to use the FIONREAD ioctl to detect how many bytes are available on a file descriptor, this can fail and return 0 so just use it as a indicator on how many bytes are pending
Definition at line 62 of file linuxhelpers.cc.
|
inline |
Definition at line 14 of file linuxhelpers_p.h.
| auto zyppng::eintrSafeCallEx | ( | const Fun & | function, |
| const RestartCb & | restartCb, | ||
| Args &&... | args ) |
Extended version of eintrSafeCall
Calls a given function in a EINTR safe way. The restartCb is invoked after every time we have to restart function because of EINTR, it can be used to reset additional errors:
Definition at line 35 of file linuxhelpers_p.h.
| auto zyppng::eintrSafeCall | ( | Fun && | function, |
| Args &&... | args ) |
Definition at line 50 of file linuxhelpers_p.h.
| ThreadData & zyppng::threadData | ( | ) |
|
constexpr |
|
constexpr |
| zyppng::ZYPP_FWD_DECL_TYPE_WITH_REFS | ( | Timer | ) |
| zyppng::ZYPP_IMPL_PRIVATE | ( | UnixSignalSource | ) |
| std::unique_ptr< zyppng::AbstractSpawnEngine > zyppng::engineFromEnv | ( | ) |
Definition at line 51 of file abstractspawnengine.cc.
| zyppng::ZYPP_FWD_DECL_TYPE_WITH_REFS | ( | IODevice | ) |
| zyppng::ZYPP_DECLARE_OPERATORS_FOR_FLAGS | ( | IODevice::OpenMode | ) |
| zyppng::ZYPP_FWD_DECL_TYPE_WITH_REFS | ( | Process | ) |
| zyppng::ZYPP_FWD_DECL_REFS | ( | Socket | ) |
|
inline |
Definition at line 94 of file algorithm.h.
| bool zyppng::containsOneOfException | ( | const std::exception_ptr & | exceptionPtr | ) |
Checks if a given std::exception_ptr contains one of the given exception types in the template arguments:
Detects exceptions by throwing and catching them, so always pass the specific exception types to check for..
Definition at line 132 of file algorithm.h.
| bool zyppng::containsException | ( | const std::exception_ptr & | exceptionPtr | ) |
Checks if a given std::exception_ptr contains the given exception type in the template type argument:
Definition at line 153 of file algorithm.h.
| zyppng::unexpected | ( | E | ) | -> unexpected< E > |
|
static |
Definition at line 470 of file expected.h.
| ResultType zyppng::and_then | ( | const expected< T, E > & | exp, |
| Function && | f ) |
Definition at line 520 of file expected.h.
| ResultType zyppng::and_then | ( | expected< T, E > && | exp, |
| Function && | f ) |
Definition at line 537 of file expected.h.
| ResultType zyppng::or_else | ( | const expected< T, E > & | exp, |
| Function && | f ) |
Definition at line 554 of file expected.h.
| ResultType zyppng::or_else | ( | expected< T, E > && | exp, |
| Function && | f ) |
Definition at line 568 of file expected.h.
| std::enable_if_t<!std::is_same_v< void, T >, expected< Container< T >, E > > zyppng::collect | ( | Container< expected< T, E >, CArgs... > && | in | ) |
Collects all values from a Container of expected values, returning the contained values or the first error encountered as a expected<Container<T>>
Definition at line 586 of file expected.h.
| std::enable_if_t< std::is_same_v< void, T >, expected< T, E > > zyppng::collect | ( | Container< expected< T, E >, CArgs... > && | in | ) |
Specialization of collect working on a Container of expected<void> values, returning either success or the error encountered.
Definition at line 604 of file expected.h.
| expected< T, E > zyppng::inspect | ( | expected< T, E > | exp, |
| Function && | f ) |
Definition at line 616 of file expected.h.
| expected< T, E > zyppng::inspect_err | ( | expected< T, E > | exp, |
| Function && | f ) |
Definition at line 629 of file expected.h.
| std::enable_if_t< is_instance_of_v< expected, Ret >, expected< Container< typename Ret::value_type > > > zyppng::transform_collect | ( | Container< Msg, CArgs... > && | in, |
| Transformation && | f ) |
This is logically the same as
, but the inner loop will stop waiting / transforming as soon as a error is encountered and returns the error right away.
Definition at line 751 of file expected.h.
| auto zyppng::mtry | ( | F && | f, |
| Args &&... | args ) |
| auto zyppng::redo_while | ( | Task && | todo, |
| Pred && | until ) |
| auto zyppng::transform | ( | Container< Msg, CArgs... > && | val, |
| Transformation && | transformation ) |
Definition at line 64 of file transform.h.
| auto zyppng::transform | ( | const Container< Msg, CArgs... > & | val, |
| Transformation && | transformation ) |
Definition at line 74 of file transform.h.
| zyppng::ZYPP_FWD_DECL_TYPE_WITH_REFS | ( | StompFrameStream | ) |
| zyppng::ZYPP_IMPL_PRIVATE_CONSTR_ARGS | ( | ProgressObserver | , |
| const std::string & | label, | ||
| int | steps ) |
Definition at line 136 of file progressobserver.cc.
| zyppng::ZYPP_IMPL_PRIVATE_CONSTR | ( | UserInterface | ) |
Definition at line 17 of file userinterface.cc.
| zyppng::ZYPP_FWD_DECL_TYPE_WITH_REFS | ( | UserInterface | ) |
| zyppng::ZYPP_FWD_DECL_TYPE_WITH_REFS | ( | UserRequest | ) |
| zyppng::ZYPP_IMPL_PRIVATE_CONSTR_ARGS | ( | ShowMessageRequest | , |
| std::string | message, | ||
| MType | mType, | ||
| UserData | data ) |
Definition at line 32 of file userrequest.cc.
| zyppng::ZYPP_IMPL_PRIVATE_CONSTR_ARGS | ( | ListChoiceRequest | , |
| std::string | label, | ||
| std::vector< Choice > | answers, | ||
| index_type | defaultAnswer, | ||
| UserData | userData ) |
Definition at line 53 of file userrequest.cc.
| zyppng::ZYPP_IMPL_PRIVATE_CONSTR_ARGS | ( | BooleanChoiceRequest | , |
| std::string | label, | ||
| const bool | defaultAnswer, | ||
| UserData | userData ) |
Definition at line 93 of file userrequest.cc.
| zyppng::ZYPP_FWD_DECL_TYPE_WITH_REFS | ( | ShowMessageRequest | ) |
| zyppng::ZYPP_FWD_DECL_TYPE_WITH_REFS | ( | ListChoiceRequest | ) |
| zyppng::ZYPP_FWD_DECL_TYPE_WITH_REFS | ( | BooleanChoiceRequest | ) |
|
static |
Definition at line 31 of file networkrequestdispatcher.cc.
| zyppng::ZYPP_IMPL_PRIVATE | ( | NetworkRequestError | ) |
| zyppng::ZYPP_FWD_DECL_TYPE_WITH_REFS | ( | ZckLoader | ) |
| zyppng::ZYPP_FWD_DECL_TYPE_WITH_REFS | ( | ProvideMediaSpec | ) |
| zyppng::ZYPP_FWD_DECL_TYPE_WITH_REFS | ( | ProvideFileSpec | ) |
| std::ostream & zyppng::operator<< | ( | std::ostream & | str, |
| const ProvideFileSpec & | obj ) |
Definition at line 310 of file providespec.cc.
| std::ostream & zyppng::dumpOn | ( | std::ostream & | str, |
| const ProvideFileSpec & | obj ) |
Definition at line 313 of file providespec.cc.
| std::string zypp::str::strerror | ( | int | errno_r | ) |
|
static |
Definition at line 54 of file eventdispatcher_glib.cc.
|
static |
Definition at line 163 of file eventdispatcher_glib.cc.
|
constexpr |
Definition at line 120 of file type_traits.h.
|
constexpr |
Definition at line 19 of file stompframestream.cc.
|
constexpr |
Definition at line 20 of file stompframestream.cc.
|
constexpr |
Definition at line 21 of file stompframestream.cc.
|
constexpr |
Definition at line 20 of file networkrequesterror.cc.
|
constexpr |
Definition at line 21 of file networkrequesterror.cc.