24 using namespace zypp::xml;
25 using namespace zypp::parser::yum;
34 Downloader::Downloader(
const RepoInfo &repoinfo ,
const Pathname &delta_dir)
35 : repo::
Downloader(repoinfo), _delta_dir(delta_dir), _media_ptr(0L)
49 if (prefix.empty() || prefix ==
"/")
61 if (!PathInfo(dir).isDir())
63 string base = file.basename();
64 size_t hypoff = base.find(
"-");
65 if (hypoff != string::npos)
66 base.replace(0, hypoff + 1,
"");
67 size_t basesize = base.size();
68 std::list<Pathname> retlist;
71 for_( it, retlist.begin(), retlist.end() )
73 string fn = it->asString();
74 if (fn.size() >= basesize && fn.substr(fn.size() - basesize, basesize) == base)
84 MIL << id_r <<
" : " << loc_with_path << endl;
106 struct RepomdFileReaderCallback2
113 addWantedLocale( it );
117 bool repomd_Callback2(
const OnMediaLocation & loc_r,
const ResourceType & dtype_r,
const std::string & typestr_r )
136 bool wantLocale(
const Locale & locale_r )
const
139 void addWantedLocale( Locale locale_r )
144 locale_r = locale_r.fallback();
181 Pathname masterIndex(
repoInfo().path() /
"/repodata/repomd.xml" );
196 start( dest_dir, media );