14#include <solv/solvversion.h>
20 static bool val = [](){
21 const char *
env =
getenv(
"ZYPP_REPOMD_WITH_OTHER");
29 static bool val = [](){
30 const char *
env =
getenv(
"ZYPP_REPOMD_WITH_FILELISTS");
58 std::string base { file.
basename() };
59 size_t hypoff = base.find(
'-' );
60 if (
hypoff != std::string::npos )
61 base.replace( 0,
hypoff + 1,
"" );
113#if defined(LIBSOLVEXT_FEATURE_ZCHUNK_COMPRESSION)
Reference counted access to a Tp object calling a custom Dispose function when the last AutoDispose h...
'Language[_Country]' codes.
static ZConfig & instance()
Singleton ctor.
Wrapper class for stat/lstat.
std::string basename() const
Return the last component of this path.
Namespace intended to collect all environment variables we use.
bool ZYPP_REPOMD_WITH_FILELISTS()
bool ZYPP_REPOMD_WITH_OTHER()
int readdir(std::list< std::string > &retlist_r, const Pathname &path_r, bool dots_r)
Return content of directory via retlist.
bool startsWith(const C_Str &str_r, const C_Str &prefix_r)
alias for hasPrefix
bool endsWith(const C_Str &str_r, const C_Str &prefix_r)
alias for hasSuffix
bool strToBool(const C_Str &str, bool default_r)
Parse str into a bool depending on the default value.
void addWantedLocale(Locale locale_r)
virtual ~RepomdFileCollector()
std::map< std::string, OnMediaLocation > _wantedFiles
virtual const Pathname & deltaDir() const =0
bool collect(const OnMediaLocation &loc_r, const std::string &typestr_r)
The callback invoked by the RepomdFileReader.
std::function< void(const OnMediaLocation &file)> FinalizeCb
void finalize(const FinalizeCb &cb)
virtual const RepoInfo & repoInfo() const =0
bool wantLocale(const Locale &locale_r) const
RepomdFileCollector(const Pathname &destDir_r)
LocaleSet _wantedLocales
Locales do download.