libzypp 17.37.18
zypp::env Namespace Reference

Namespace intended to collect all environment variables we use. More...

Classes

class  ScopedSet
 Temporarily set/unset an environment variable. More...

Functions

TriBool getenvBool (const C_Str &var_r)
 If the environment variable var_r is set to a legal true or false string return bool, else indeterminate.
const long & ZYPP_MEDIA_CURL_DEBUG ()
 const long& for setting CURLOPT_DEBUGDATA Returns a reference to a static variable, so it's safe to pass it's address to CURLOPT_DEBUGDATA.
int ZYPP_MEDIA_CURL_IPRESOLVE ()
 4/6 to force IPv4/v6
bool ZYPP_METALINK_DEBUG ()
 Hack to circumvent the currently poor –root support.
bool inYAST ()
bool PX_DEBUG ()

Detailed Description

Namespace intended to collect all environment variables we use.

Function Documentation

◆ getenvBool()

TriBool zypp::env::getenvBool ( const C_Str & var_r)
inline

If the environment variable var_r is set to a legal true or false string return bool, else indeterminate.

True is: "1", "yes", "true", "always", "on", "+", a number !=0 False is: "0", "no", "false", "never", "off" "-"

Definition at line 32 of file Env.h.

◆ ZYPP_MEDIA_CURL_DEBUG()

const long & zypp::env::ZYPP_MEDIA_CURL_DEBUG ( )

const long& for setting CURLOPT_DEBUGDATA Returns a reference to a static variable, so it's safe to pass it's address to CURLOPT_DEBUGDATA.

Definition at line 36 of file curlhelper.cc.

◆ ZYPP_MEDIA_CURL_IPRESOLVE()

int zypp::env::ZYPP_MEDIA_CURL_IPRESOLVE ( )

4/6 to force IPv4/v6

Definition at line 45 of file curlhelper.cc.

◆ ZYPP_METALINK_DEBUG()

bool zypp::env::ZYPP_METALINK_DEBUG ( )
inline

Hack to circumvent the currently poor –root support.

Definition at line 30 of file metalinkparser.cc.

◆ inYAST()

bool zypp::env::inYAST ( )
inline

Definition at line 34 of file proxyinfolibproxy.cc.

◆ PX_DEBUG()

bool zypp::env::PX_DEBUG ( )
inline

Definition at line 40 of file proxyinfolibproxy.cc.