19#include <zypp-core/fs/WatchFile>
22#include <zypp-curl/proxyinfo/ProxyInfoLibproxy>
56 static std::unique_ptr<LibProxyAPI> create() {
57 MIL <<
"Detecting libproxy availability" << std::endl;
60 MIL <<
"No libproxy support detected (could not load library): " <<
dlerror() << std::endl;
64 std::unique_ptr<LibProxyAPI>
apiInstance = std::make_unique<LibProxyAPI>();
68 ERR <<
"Incompatible libproxy detected (could not resolve px_proxy_factory_new): " <<
dlerror() << std::endl;
73 ERR <<
"Incompatible libproxy detected (could not resolve px_proxy_factory_free): " <<
dlerror() << std::endl;
78 ERR <<
"Incompatible libproxy detected (could not resolve px_proxy_factory_get_proxies): " <<
dlerror() << std::endl;
83 MIL <<
"Older version of libproxy detected, using fallback function to free the proxy list (could not resolve px_proxy_factory_free_proxies): " <<
dlerror() << std::endl;
87 MIL <<
"Libproxy is available" << std::endl;
93 static std::unique_ptr<LibProxyAPI>
api = LibProxyAPI::create();
113 ::unsetenv(
_var.c_str() );
144 MIL <<
"Build Libproxy Factory from /etc/sysconfig/proxy" << endl;
153 MIL <<
"Build Libproxy Factory" << endl;
181 url::ViewOption::WITH_SCHEME
182 + url::ViewOption::WITH_HOST
183 + url::ViewOption::WITH_PORT
184 + url::ViewOption::WITH_PATH_NAME;
197 std::optional<std::string> result;
204 return result.value_or(
"" );
RepoManager implementation.
Reference counted access to a Tp object calling a custom Dispose function when the last AutoDispose h...
reference value() const
Reference to the Tp object.
Base class for Exception.
Remember a files attributes to detect content changes.
const std::string & asString(const std::string &t)
Global asString() that works with std::string too.
Easy-to use interface to the ZYPP dependency resolver.
DelFactoryCb deleteProxyFactory
FreeProxiesCb freeProxies
zypp::AutoDispose< void * > libProxyLibHandle
CreateFactoryCb createProxyFactory
struct _pxProxyFactory pxProxyFactoryType
Url::asString() view options.
#define ZYPP_THROW(EXCPT)
Drops a logline and throws the Exception.