<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/> <meta http-equiv="X-UA-Compatible" content="IE=9"/> <meta name="generator" content="Doxygen 1.8.15"/> <meta name="viewport" content="width=device-width, initial-scale=1"/> <title>libzypp: zypp/repo/Downloader.cc Source File</title> <link href="tabs.css" rel="stylesheet" type="text/css"/> <script type="text/javascript" src="jquery.js"></script> <script type="text/javascript" src="dynsections.js"></script> <link href="navtree.css" rel="stylesheet" type="text/css"/> <script type="text/javascript" src="resize.js"></script> <script type="text/javascript" src="navtreedata.js"></script> <script type="text/javascript" src="navtree.js"></script> <script type="text/javascript"> /* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&dn=gpl-2.0.txt GPL-v2 */ $(document).ready(initResizable); /* @license-end */</script> <link href="doxygen.css" rel="stylesheet" type="text/css" /> </head> <body> <div id="top"><!-- do not remove this div, it is closed by doxygen! --> <div id="titlearea"> <table cellspacing="0" cellpadding="0"> <tbody> <tr style="height: 56px;"> <td id="projectalign" style="padding-left: 0.5em;"> <div id="projectname">libzypp  <span id="projectnumber">17.9.0</span> </div> </td> </tr> </tbody> </table> </div> <!-- end header part --> <!-- Generated by Doxygen 1.8.15 --> <script type="text/javascript" src="menudata.js"></script> <script type="text/javascript" src="menu.js"></script> <script type="text/javascript"> /* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&dn=gpl-2.0.txt GPL-v2 */ $(function() { initMenu('',false,false,'search.php','Search'); }); /* @license-end */</script> <div id="main-nav"></div> </div><!-- top --> <div id="side-nav" class="ui-resizable side-nav-resizable"> <div id="nav-tree"> <div id="nav-tree-contents"> <div id="nav-sync" class="sync"></div> </div> </div> <div id="splitbar" style="-moz-user-select:none;" class="ui-resizable-handle"> </div> </div> <script type="text/javascript"> /* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&dn=gpl-2.0.txt GPL-v2 */ $(document).ready(function(){initNavTree('Downloader_8cc_source.html','');}); /* @license-end */ </script> <div id="doc-content"> <div class="header"> <div class="headertitle"> <div class="title">Downloader.cc</div> </div> </div><!--header--> <div class="contents"> <a href="Downloader_8cc.html">Go to the documentation of this file.</a><div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno"> 1</span> <span class="comment">/*---------------------------------------------------------------------\</span></div><div class="line"><a name="l00002"></a><span class="lineno"> 2</span> <span class="comment">| ____ _ __ __ ___ |</span></div><div class="line"><a name="l00003"></a><span class="lineno"> 3</span> <span class="comment">| |__ / \ / / . \ . \ |</span></div><div class="line"><a name="l00004"></a><span class="lineno"> 4</span> <span class="comment">| / / \ V /| _/ _/ |</span></div><div class="line"><a name="l00005"></a><span class="lineno"> 5</span> <span class="comment">| / /__ | | | | | | |</span></div><div class="line"><a name="l00006"></a><span class="lineno"> 6</span> <span class="comment">| /_____||_| |_| |_| |</span></div><div class="line"><a name="l00007"></a><span class="lineno"> 7</span> <span class="comment">| |</span></div><div class="line"><a name="l00008"></a><span class="lineno"> 8</span> <span class="comment">\---------------------------------------------------------------------*/</span></div><div class="line"><a name="l00009"></a><span class="lineno"> 9</span> </div><div class="line"><a name="l00010"></a><span class="lineno"> 10</span> <span class="preprocessor">#include <fstream></span></div><div class="line"><a name="l00011"></a><span class="lineno"> 11</span> <span class="preprocessor">#include "<a class="code" href="String_8h.html">zypp/base/String.h</a>"</span></div><div class="line"><a name="l00012"></a><span class="lineno"> 12</span> <span class="preprocessor">#include "<a class="code" href="Logger_8h.html">zypp/base/Logger.h</a>"</span></div><div class="line"><a name="l00013"></a><span class="lineno"> 13</span> <span class="preprocessor">#include "<a class="code" href="Gettext_8h.html">zypp/base/Gettext.h</a>"</span></div><div class="line"><a name="l00014"></a><span class="lineno"> 14</span> </div><div class="line"><a name="l00015"></a><span class="lineno"> 15</span> <span class="preprocessor">#include "<a class="code" href="Downloader_8h.html">Downloader.h</a>"</span></div><div class="line"><a name="l00016"></a><span class="lineno"> 16</span> <span class="preprocessor">#include "<a class="code" href="KeyContext_8h.html">zypp/KeyContext.h</a>"</span></div><div class="line"><a name="l00017"></a><span class="lineno"> 17</span> <span class="preprocessor">#include "<a class="code" href="ZYppCallbacks_8h.html">zypp/ZYppCallbacks.h</a>"</span></div><div class="line"><a name="l00018"></a><span class="lineno"> 18</span> </div><div class="line"><a name="l00019"></a><span class="lineno"> 19</span> <span class="keyword">using namespace </span><a class="code" href="namespacestd.html">std</a>;</div><div class="line"><a name="l00020"></a><span class="lineno"> 20</span> </div><div class="line"><a name="l00021"></a><span class="lineno"> 21</span> <span class="keyword">namespace </span><a class="code" href="namespacezypp.html">zypp</a></div><div class="line"><a name="l00022"></a><span class="lineno"> 22</span> {</div><div class="line"><a name="l00023"></a><span class="lineno"> 23</span> <span class="keyword">namespace </span>repo</div><div class="line"><a name="l00024"></a><span class="lineno"> 24</span> {</div><div class="line"><a name="l00025"></a><span class="lineno"> 25</span> </div><div class="line"><a name="l00026"></a><span class="lineno"><a class="line" href="classzypp_1_1repo_1_1Downloader.html#aae61733590d58214a5507dcda5333b9e"> 26</a></span> Downloader::Downloader()</div><div class="line"><a name="l00027"></a><span class="lineno"> 27</span> {</div><div class="line"><a name="l00028"></a><span class="lineno"> 28</span> }</div><div class="line"><a name="l00029"></a><span class="lineno"><a class="line" href="classzypp_1_1repo_1_1Downloader.html#ac0449b678bc560a6f985932bd4ca13b8"> 29</a></span> Downloader::Downloader(<span class="keyword">const</span> <a class="code" href="classzypp_1_1RepoInfo.html">RepoInfo</a> & repoinfo) : _repoinfo(repoinfo)</div><div class="line"><a name="l00030"></a><span class="lineno"> 30</span> {</div><div class="line"><a name="l00031"></a><span class="lineno"> 31</span> }</div><div class="line"><a name="l00032"></a><span class="lineno"><a class="line" href="classzypp_1_1repo_1_1Downloader.html#a7c87178107352752fafc838d54f386f9"> 32</a></span> <a class="code" href="classzypp_1_1repo_1_1Downloader.html#a7c87178107352752fafc838d54f386f9">Downloader::~Downloader</a>()</div><div class="line"><a name="l00033"></a><span class="lineno"> 33</span> {</div><div class="line"><a name="l00034"></a><span class="lineno"> 34</span> }</div><div class="line"><a name="l00035"></a><span class="lineno"> 35</span> </div><div class="line"><a name="l00036"></a><span class="lineno"><a class="line" href="classzypp_1_1repo_1_1Downloader.html#a79adc470a7ddc166087823cbe86f78ec"> 36</a></span> <a class="code" href="classzypp_1_1RepoStatus.html">RepoStatus</a> <a class="code" href="classzypp_1_1repo_1_1Downloader.html#a79adc470a7ddc166087823cbe86f78ec">Downloader::status</a>( <a class="code" href="namespaceMediaSetAccess.html">MediaSetAccess</a> &media )</div><div class="line"><a name="l00037"></a><span class="lineno"> 37</span> {</div><div class="line"><a name="l00038"></a><span class="lineno"> 38</span>  <a class="code" href="group__ZYPP__BASE__LOGGER__MACROS.html#ga9423380a92639b296ea0a984ea7e1c6b">WAR</a> << <span class="stringliteral">"Non implemented"</span> << endl;</div><div class="line"><a name="l00039"></a><span class="lineno"> 39</span>  <span class="keywordflow">return</span> <a class="code" href="classzypp_1_1RepoStatus.html">RepoStatus</a>();</div><div class="line"><a name="l00040"></a><span class="lineno"> 40</span> }</div><div class="line"><a name="l00041"></a><span class="lineno"> 41</span> </div><div class="line"><a name="l00042"></a><span class="lineno"><a class="line" href="classzypp_1_1repo_1_1Downloader.html#a32d1f8b29070810bc6c7a31b403822cc"> 42</a></span> <span class="keywordtype">void</span> <a class="code" href="classzypp_1_1repo_1_1Downloader.html#a32d1f8b29070810bc6c7a31b403822cc">Downloader::download</a>( <a class="code" href="namespaceMediaSetAccess.html">MediaSetAccess</a> &media,</div><div class="line"><a name="l00043"></a><span class="lineno"> 43</span>  <span class="keyword">const</span> <a class="code" href="classzypp_1_1filesystem_1_1Pathname.html">Pathname</a> &dest_dir,</div><div class="line"><a name="l00044"></a><span class="lineno"> 44</span>  <span class="keyword">const</span> <a class="code" href="classzypp_1_1ProgressData.html#a89143a717926c1fa891ba91f07ad7aa8">ProgressData::ReceiverFnc</a> & progress )</div><div class="line"><a name="l00045"></a><span class="lineno"> 45</span> {</div><div class="line"><a name="l00046"></a><span class="lineno"> 46</span>  <a class="code" href="group__ZYPP__BASE__LOGGER__MACROS.html#ga9423380a92639b296ea0a984ea7e1c6b">WAR</a> << <span class="stringliteral">"Non implemented"</span> << endl;</div><div class="line"><a name="l00047"></a><span class="lineno"> 47</span> }</div><div class="line"><a name="l00048"></a><span class="lineno"> 48</span> </div><div class="line"><a name="l00049"></a><span class="lineno"><a class="line" href="classzypp_1_1repo_1_1Downloader.html#a72b46eff2fd8408a13597004422e8a8c"> 49</a></span> <span class="keywordtype">void</span> <a class="code" href="classzypp_1_1repo_1_1Downloader.html#a72b46eff2fd8408a13597004422e8a8c">Downloader::defaultDownloadMasterIndex</a>( <a class="code" href="namespaceMediaSetAccess.html">MediaSetAccess</a> & media_r, <span class="keyword">const</span> <a class="code" href="classzypp_1_1filesystem_1_1Pathname.html">Pathname</a> & destdir_r, <span class="keyword">const</span> <a class="code" href="classzypp_1_1filesystem_1_1Pathname.html">Pathname</a> & masterIndex_r )</div><div class="line"><a name="l00050"></a><span class="lineno"> 50</span> {</div><div class="line"><a name="l00051"></a><span class="lineno"> 51</span>  <a class="code" href="classzypp_1_1filesystem_1_1Pathname.html">Pathname</a> sigpath = masterIndex_r.<a class="code" href="classzypp_1_1filesystem_1_1Pathname.html#a1114035054f85b92ed389e33c0b42bb9">extend</a>( <span class="stringliteral">".asc"</span> );</div><div class="line"><a name="l00052"></a><span class="lineno"> 52</span>  <a class="code" href="classzypp_1_1filesystem_1_1Pathname.html">Pathname</a> keypath = masterIndex_r.<a class="code" href="classzypp_1_1filesystem_1_1Pathname.html#a1114035054f85b92ed389e33c0b42bb9">extend</a>( <span class="stringliteral">".key"</span> );</div><div class="line"><a name="l00053"></a><span class="lineno"> 53</span> </div><div class="line"><a name="l00054"></a><span class="lineno"> 54</span>  <span class="comment">// always download them, even if repoGpgCheck is disabled</span></div><div class="line"><a name="l00055"></a><span class="lineno"> 55</span>  <a class="code" href="classzypp_1_1Fetcher.html#a70bf86b79179cbbe00a67bb776596e4a">enqueue</a>( <a class="code" href="classzypp_1_1OnMediaLocation.html">OnMediaLocation</a>( sigpath, 1 ).setOptional( <span class="keyword">true</span> ).setDownloadSize( <a class="code" href="classzypp_1_1ByteCount.html">ByteCount</a>( 20, <a class="code" href="classzypp_1_1ByteCount.html#a0cbf2655b16ae9018e712f7f8d1d57e4">ByteCount::MB</a> ) ) );</div><div class="line"><a name="l00056"></a><span class="lineno"> 56</span>  <a class="code" href="classzypp_1_1Fetcher.html#a70bf86b79179cbbe00a67bb776596e4a">enqueue</a>( <a class="code" href="classzypp_1_1OnMediaLocation.html">OnMediaLocation</a>( keypath, 1 ).setOptional( <span class="keyword">true</span> ).setDownloadSize( <a class="code" href="classzypp_1_1ByteCount.html">ByteCount</a>( 20, <a class="code" href="classzypp_1_1ByteCount.html#a0cbf2655b16ae9018e712f7f8d1d57e4">ByteCount::MB</a> ) ) );</div><div class="line"><a name="l00057"></a><span class="lineno"> 57</span>  <a class="code" href="classzypp_1_1Fetcher.html#a63506014903b608d38ca4d96dc1573e5">start</a>( destdir_r, media_r );</div><div class="line"><a name="l00058"></a><span class="lineno"> 58</span>  <a class="code" href="classzypp_1_1Fetcher.html#a307eb63c935c97342b1439576df49e9f">reset</a>();</div><div class="line"><a name="l00059"></a><span class="lineno"> 59</span> </div><div class="line"><a name="l00060"></a><span class="lineno"> 60</span>  <a class="code" href="namespacezypp.html#ae95ba3a6af05a2b35ed49092f78ce2b3">FileChecker</a> checker; <span class="comment">// set to sigchecker if appropriate, else Null.</span></div><div class="line"><a name="l00061"></a><span class="lineno"> 61</span>  <a class="code" href="classzypp_1_1SignatureFileChecker.html">SignatureFileChecker</a> sigchecker;</div><div class="line"><a name="l00062"></a><span class="lineno"> 62</span>  <span class="keywordtype">bool</span> isSigned = <a class="code" href="classzypp_1_1filesystem_1_1PathInfo.html">PathInfo</a>(destdir_r / sigpath).<a class="code" href="classzypp_1_1filesystem_1_1PathInfo.html#abb1afbf5ddd0392d0d0abc25577347d3">isExist</a>();</div><div class="line"><a name="l00063"></a><span class="lineno"> 63</span> </div><div class="line"><a name="l00064"></a><span class="lineno"> 64</span>  <span class="keywordflow">if</span> ( <a class="code" href="classzypp_1_1repo_1_1Downloader.html#abce6a2457b2517011c37f5d723ea9ba8">repoInfo</a>().repoGpgCheck() )</div><div class="line"><a name="l00065"></a><span class="lineno"> 65</span>  {</div><div class="line"><a name="l00066"></a><span class="lineno"> 66</span>  <span class="keywordflow">if</span> ( isSigned || <a class="code" href="classzypp_1_1repo_1_1Downloader.html#abce6a2457b2517011c37f5d723ea9ba8">repoInfo</a>().repoGpgCheckIsMandatory() )</div><div class="line"><a name="l00067"></a><span class="lineno"> 67</span>  {</div><div class="line"><a name="l00068"></a><span class="lineno"> 68</span>  <span class="comment">// only add the signature if it exists</span></div><div class="line"><a name="l00069"></a><span class="lineno"> 69</span>  <span class="keywordflow">if</span> ( isSigned )</div><div class="line"><a name="l00070"></a><span class="lineno"> 70</span>  sigchecker = <a class="code" href="classzypp_1_1SignatureFileChecker.html">SignatureFileChecker</a>( destdir_r / sigpath );</div><div class="line"><a name="l00071"></a><span class="lineno"> 71</span> </div><div class="line"><a name="l00072"></a><span class="lineno"> 72</span>  <a class="code" href="structzypp_1_1KeyContext.html">KeyContext</a> context;</div><div class="line"><a name="l00073"></a><span class="lineno"> 73</span>  context.<a class="code" href="structzypp_1_1KeyContext.html#a2bae9838ca47bb6e72d563fe573a1c2c">setRepoInfo</a>( <a class="code" href="classzypp_1_1repo_1_1Downloader.html#abce6a2457b2517011c37f5d723ea9ba8">repoInfo</a>() );</div><div class="line"><a name="l00074"></a><span class="lineno"> 74</span>  <span class="comment">// only add the key if it exists</span></div><div class="line"><a name="l00075"></a><span class="lineno"> 75</span>  <span class="keywordflow">if</span> ( <a class="code" href="classzypp_1_1filesystem_1_1PathInfo.html">PathInfo</a>(destdir_r / keypath).isExist() )</div><div class="line"><a name="l00076"></a><span class="lineno"> 76</span>  sigchecker.<a class="code" href="classzypp_1_1SignatureFileChecker.html#ac60b1519d77430f107f98de120b883cd">addPublicKey</a>( destdir_r / keypath, context );</div><div class="line"><a name="l00077"></a><span class="lineno"> 77</span>  <span class="keywordflow">else</span></div><div class="line"><a name="l00078"></a><span class="lineno"> 78</span>  <span class="comment">// set the checker context even if the key is not known (unsigned repo, key</span></div><div class="line"><a name="l00079"></a><span class="lineno"> 79</span>  <span class="comment">// file missing; bnc #495977)</span></div><div class="line"><a name="l00080"></a><span class="lineno"> 80</span>  sigchecker.<a class="code" href="classzypp_1_1SignatureFileChecker.html#a98fb8a830762ee007f6111a67d922fd0">setKeyContext</a>( context );</div><div class="line"><a name="l00081"></a><span class="lineno"> 81</span> </div><div class="line"><a name="l00082"></a><span class="lineno"> 82</span>  checker = <a class="code" href="namespacezypp.html#ae95ba3a6af05a2b35ed49092f78ce2b3">FileChecker</a>( ref(sigchecker) ); <span class="comment">// ref() to the local sigchecker is important as we want back fileValidated!</span></div><div class="line"><a name="l00083"></a><span class="lineno"> 83</span>  }</div><div class="line"><a name="l00084"></a><span class="lineno"> 84</span>  <span class="keywordflow">else</span></div><div class="line"><a name="l00085"></a><span class="lineno"> 85</span>  {</div><div class="line"><a name="l00086"></a><span class="lineno"> 86</span>  <a class="code" href="group__ZYPP__BASE__LOGGER__MACROS.html#ga9423380a92639b296ea0a984ea7e1c6b">WAR</a> << <span class="stringliteral">"Accept unsigned repository because repoGpgCheck is not mandatory for "</span> << <a class="code" href="classzypp_1_1repo_1_1Downloader.html#abce6a2457b2517011c37f5d723ea9ba8">repoInfo</a>().<a class="code" href="classzypp_1_1repo_1_1RepoInfoBase.html#afab76632f5714287e21fde1f4dfa00a1">alias</a>() << endl;</div><div class="line"><a name="l00087"></a><span class="lineno"> 87</span>  }</div><div class="line"><a name="l00088"></a><span class="lineno"> 88</span>  }</div><div class="line"><a name="l00089"></a><span class="lineno"> 89</span>  <span class="keywordflow">else</span></div><div class="line"><a name="l00090"></a><span class="lineno"> 90</span>  {</div><div class="line"><a name="l00091"></a><span class="lineno"> 91</span>  <a class="code" href="group__ZYPP__BASE__LOGGER__MACROS.html#ga9423380a92639b296ea0a984ea7e1c6b">WAR</a> << <span class="stringliteral">"Signature checking disabled in config of repository "</span> << <a class="code" href="classzypp_1_1repo_1_1Downloader.html#abce6a2457b2517011c37f5d723ea9ba8">repoInfo</a>().<a class="code" href="classzypp_1_1repo_1_1RepoInfoBase.html#afab76632f5714287e21fde1f4dfa00a1">alias</a>() << endl;</div><div class="line"><a name="l00092"></a><span class="lineno"> 92</span>  }</div><div class="line"><a name="l00093"></a><span class="lineno"> 93</span> </div><div class="line"><a name="l00094"></a><span class="lineno"> 94</span>  <a class="code" href="classzypp_1_1Fetcher.html#a70bf86b79179cbbe00a67bb776596e4a">enqueue</a>( <a class="code" href="classzypp_1_1OnMediaLocation.html">OnMediaLocation</a>( masterIndex_r, 1 ).setDownloadSize( <a class="code" href="classzypp_1_1ByteCount.html">ByteCount</a>( 20, <a class="code" href="classzypp_1_1ByteCount.html#a0cbf2655b16ae9018e712f7f8d1d57e4">ByteCount::MB</a> ) ), checker ? checker : <a class="code" href="namespacezypp.html#ae95ba3a6af05a2b35ed49092f78ce2b3">FileChecker</a>(<a class="code" href="classzypp_1_1NullFileChecker.html">NullFileChecker</a>()) );</div><div class="line"><a name="l00095"></a><span class="lineno"> 95</span>  <a class="code" href="classzypp_1_1Fetcher.html#a63506014903b608d38ca4d96dc1573e5">start</a>( destdir_r, media_r );</div><div class="line"><a name="l00096"></a><span class="lineno"> 96</span>  <a class="code" href="classzypp_1_1Fetcher.html#a307eb63c935c97342b1439576df49e9f">reset</a>();</div><div class="line"><a name="l00097"></a><span class="lineno"> 97</span> </div><div class="line"><a name="l00098"></a><span class="lineno"> 98</span>  <span class="comment">// Accepted!</span></div><div class="line"><a name="l00099"></a><span class="lineno"> 99</span>  <a class="code" href="classzypp_1_1repo_1_1Downloader.html#a028865691045b5dcf38955f8ffa682cb">_repoinfo</a>.<a class="code" href="classzypp_1_1RepoInfo.html#ad534a9a04378a4005fed1793424913ea">setMetadataPath</a>( destdir_r );</div><div class="line"><a name="l00100"></a><span class="lineno"> 100</span>  <span class="keywordflow">if</span> ( isSigned )</div><div class="line"><a name="l00101"></a><span class="lineno"> 101</span>  <a class="code" href="classzypp_1_1repo_1_1Downloader.html#a028865691045b5dcf38955f8ffa682cb">_repoinfo</a>.<a class="code" href="classzypp_1_1RepoInfo.html#abedfb5b68615bfc1935fa8014216030f">setValidRepoSignature</a>( sigchecker.<a class="code" href="classzypp_1_1SignatureFileChecker.html#a9391d2f36b62147a29cfeba0f971f58d">fileValidated</a>() );</div><div class="line"><a name="l00102"></a><span class="lineno"> 102</span>  <span class="keywordflow">else</span></div><div class="line"><a name="l00103"></a><span class="lineno"> 103</span>  <a class="code" href="classzypp_1_1repo_1_1Downloader.html#a028865691045b5dcf38955f8ffa682cb">_repoinfo</a>.<a class="code" href="classzypp_1_1RepoInfo.html#abedfb5b68615bfc1935fa8014216030f">setValidRepoSignature</a>( indeterminate );</div><div class="line"><a name="l00104"></a><span class="lineno"> 104</span> }</div><div class="line"><a name="l00105"></a><span class="lineno"> 105</span> </div><div class="line"><a name="l00106"></a><span class="lineno"> 106</span> </div><div class="line"><a name="l00107"></a><span class="lineno"> 107</span> }<span class="comment">// ns repo</span></div><div class="line"><a name="l00108"></a><span class="lineno"> 108</span> } <span class="comment">// ns zypp</span></div><div class="line"><a name="l00109"></a><span class="lineno"> 109</span> </div><div class="line"><a name="l00110"></a><span class="lineno"> 110</span> </div><div class="line"><a name="l00111"></a><span class="lineno"> 111</span> </div><div class="ttc" id="Gettext_8h_html"><div class="ttname"><a href="Gettext_8h.html">Gettext.h</a></div><div class="ttdoc">Interface to gettext.</div></div> <div class="ttc" id="classzypp_1_1NullFileChecker_html"><div class="ttname"><a href="classzypp_1_1NullFileChecker.html">zypp::NullFileChecker</a></div><div class="ttdoc">Checks for nothing Used as the default checker.</div><div class="ttdef"><b>Definition:</b> <a href="FileChecker_8h_source.html#l00172">FileChecker.h:172</a></div></div> <div class="ttc" id="classzypp_1_1repo_1_1Downloader_html_a72b46eff2fd8408a13597004422e8a8c"><div class="ttname"><a href="classzypp_1_1repo_1_1Downloader.html#a72b46eff2fd8408a13597004422e8a8c">zypp::repo::Downloader::defaultDownloadMasterIndex</a></div><div class="ttdeci">void defaultDownloadMasterIndex(MediaSetAccess &media_r, const Pathname &destdir_r, const Pathname &masterIndex_r)</div><div class="ttdoc">Common workflow downloading a (signed) master index file.</div><div class="ttdef"><b>Definition:</b> <a href="Downloader_8cc_source.html#l00049">Downloader.cc:49</a></div></div> <div class="ttc" id="classzypp_1_1OnMediaLocation_html"><div class="ttname"><a href="classzypp_1_1OnMediaLocation.html">zypp::OnMediaLocation</a></div><div class="ttdoc">Describes a path on a certain media amongs as the information required to download it,...</div><div class="ttdef"><b>Definition:</b> <a href="OnMediaLocation_8h_source.html#l00039">OnMediaLocation.h:39</a></div></div> <div class="ttc" id="classzypp_1_1repo_1_1Downloader_html_a028865691045b5dcf38955f8ffa682cb"><div class="ttname"><a href="classzypp_1_1repo_1_1Downloader.html#a028865691045b5dcf38955f8ffa682cb">zypp::repo::Downloader::_repoinfo</a></div><div class="ttdeci">RepoInfo _repoinfo</div><div class="ttdef"><b>Definition:</b> <a href="Downloader_8h_source.html#l00065">Downloader.h:65</a></div></div> <div class="ttc" id="classzypp_1_1SignatureFileChecker_html"><div class="ttname"><a href="classzypp_1_1SignatureFileChecker.html">zypp::SignatureFileChecker</a></div><div class="ttdoc">Checks for the validity of a signature.</div><div class="ttdef"><b>Definition:</b> <a href="FileChecker_8h_source.html#l00093">FileChecker.h:93</a></div></div> <div class="ttc" id="classzypp_1_1ByteCount_html"><div class="ttname"><a href="classzypp_1_1ByteCount.html">zypp::ByteCount</a></div><div class="ttdoc">Store and operate with byte count.</div><div class="ttdef"><b>Definition:</b> <a href="ByteCount_8h_source.html#l00030">ByteCount.h:30</a></div></div> <div class="ttc" id="classzypp_1_1filesystem_1_1Pathname_html_a1114035054f85b92ed389e33c0b42bb9"><div class="ttname"><a href="classzypp_1_1filesystem_1_1Pathname.html#a1114035054f85b92ed389e33c0b42bb9">zypp::filesystem::Pathname::extend</a></div><div class="ttdeci">Pathname extend(const std::string &r) const</div><div class="ttdoc">Append string r to the last component of the path.</div><div class="ttdef"><b>Definition:</b> <a href="Pathname_8h_source.html#l00169">Pathname.h:169</a></div></div> <div class="ttc" id="namespacestd_html"><div class="ttname"><a href="namespacestd.html">std</a></div><div class="ttdef"><b>Definition:</b> <a href="Arch_8h_source.html#l00344">Arch.h:344</a></div></div> <div class="ttc" id="classzypp_1_1RepoInfo_html"><div class="ttname"><a href="classzypp_1_1RepoInfo.html">zypp::RepoInfo</a></div><div class="ttdoc">What is known about a repository.</div><div class="ttdef"><b>Definition:</b> <a href="RepoInfo_8h_source.html#l00071">RepoInfo.h:71</a></div></div> <div class="ttc" id="classzypp_1_1ByteCount_html_a0cbf2655b16ae9018e712f7f8d1d57e4"><div class="ttname"><a href="classzypp_1_1ByteCount.html#a0cbf2655b16ae9018e712f7f8d1d57e4">zypp::ByteCount::MB</a></div><div class="ttdeci">static const Unit MB</div><div class="ttdoc">1000^2 Byte</div><div class="ttdef"><b>Definition:</b> <a href="ByteCount_8h_source.html#l00060">ByteCount.h:60</a></div></div> <div class="ttc" id="classzypp_1_1ProgressData_html_a89143a717926c1fa891ba91f07ad7aa8"><div class="ttname"><a href="classzypp_1_1ProgressData.html#a89143a717926c1fa891ba91f07ad7aa8">zypp::ProgressData::ReceiverFnc</a></div><div class="ttdeci">function< bool(const ProgressData &)> ReceiverFnc</div><div class="ttdoc">Most simple version of progress reporting The percentage in most cases.</div><div class="ttdef"><b>Definition:</b> <a href="ProgressData_8h_source.html#l00139">ProgressData.h:139</a></div></div> <div class="ttc" id="Downloader_8h_html"><div class="ttname"><a href="Downloader_8h.html">Downloader.h</a></div></div> <div class="ttc" id="classzypp_1_1SignatureFileChecker_html_ac60b1519d77430f107f98de120b883cd"><div class="ttname"><a href="classzypp_1_1SignatureFileChecker.html#ac60b1519d77430f107f98de120b883cd">zypp::SignatureFileChecker::addPublicKey</a></div><div class="ttdeci">void addPublicKey(const PublicKey &publickey, const KeyContext &keycontext=KeyContext())</div><div class="ttdoc">add a public key to the list of known keys</div><div class="ttdef"><b>Definition:</b> <a href="FileChecker_8cc_source.html#l00125">FileChecker.cc:125</a></div></div> <div class="ttc" id="classzypp_1_1RepoInfo_html_abedfb5b68615bfc1935fa8014216030f"><div class="ttname"><a href="classzypp_1_1RepoInfo.html#abedfb5b68615bfc1935fa8014216030f">zypp::RepoInfo::setValidRepoSignature</a></div><div class="ttdeci">void setValidRepoSignature(TriBool value_r)</div><div class="ttdoc">Set the value for validRepoSignature (or indeterminate if unsigned).</div><div class="ttdef"><b>Definition:</b> <a href="RepoInfo_8cc_source.html#l00429">RepoInfo.cc:429</a></div></div> <div class="ttc" id="classzypp_1_1repo_1_1Downloader_html_a7c87178107352752fafc838d54f386f9"><div class="ttname"><a href="classzypp_1_1repo_1_1Downloader.html#a7c87178107352752fafc838d54f386f9">zypp::repo::Downloader::~Downloader</a></div><div class="ttdeci">virtual ~Downloader()</div><div class="ttdef"><b>Definition:</b> <a href="Downloader_8cc_source.html#l00032">Downloader.cc:32</a></div></div> <div class="ttc" id="structzypp_1_1KeyContext_html"><div class="ttname"><a href="structzypp_1_1KeyContext.html">zypp::KeyContext</a></div><div class="ttdef"><b>Definition:</b> <a href="KeyContext_8h_source.html#l00008">KeyContext.h:8</a></div></div> <div class="ttc" id="classzypp_1_1repo_1_1RepoInfoBase_html_afab76632f5714287e21fde1f4dfa00a1"><div class="ttname"><a href="classzypp_1_1repo_1_1RepoInfoBase.html#afab76632f5714287e21fde1f4dfa00a1">zypp::repo::RepoInfoBase::alias</a></div><div class="ttdeci">std::string alias() const</div><div class="ttdoc">unique identifier for this source.</div><div class="ttdef"><b>Definition:</b> <a href="RepoInfoBase_8cc_source.html#l00111">RepoInfoBase.cc:111</a></div></div> <div class="ttc" id="classzypp_1_1filesystem_1_1PathInfo_html_abb1afbf5ddd0392d0d0abc25577347d3"><div class="ttname"><a href="classzypp_1_1filesystem_1_1PathInfo.html#abb1afbf5ddd0392d0d0abc25577347d3">zypp::filesystem::PathInfo::isExist</a></div><div class="ttdeci">bool isExist() const</div><div class="ttdoc">Return whether valid stat info exists.</div><div class="ttdef"><b>Definition:</b> <a href="PathInfo_8h_source.html#l00281">PathInfo.h:281</a></div></div> <div class="ttc" id="classzypp_1_1Fetcher_html_a307eb63c935c97342b1439576df49e9f"><div class="ttname"><a href="classzypp_1_1Fetcher.html#a307eb63c935c97342b1439576df49e9f">zypp::Fetcher::reset</a></div><div class="ttdeci">void reset()</div><div class="ttdoc">Reset the transfer (jobs) list.</div><div class="ttdef"><b>Definition:</b> <a href="Fetcher_8cc_source.html#l00867">Fetcher.cc:867</a></div></div> <div class="ttc" id="group__ZYPP__BASE__LOGGER__MACROS_html_ga9423380a92639b296ea0a984ea7e1c6b"><div class="ttname"><a href="group__ZYPP__BASE__LOGGER__MACROS.html#ga9423380a92639b296ea0a984ea7e1c6b">WAR</a></div><div class="ttdeci">#define WAR</div><div class="ttdef"><b>Definition:</b> <a href="Logger_8h_source.html#l00080">Logger.h:80</a></div></div> <div class="ttc" id="classzypp_1_1RepoInfo_html_ad534a9a04378a4005fed1793424913ea"><div class="ttname"><a href="classzypp_1_1RepoInfo.html#ad534a9a04378a4005fed1793424913ea">zypp::RepoInfo::setMetadataPath</a></div><div class="ttdeci">void setMetadataPath(const Pathname &path)</div><div class="ttdoc">Set the path where the local metadata is stored.</div><div class="ttdef"><b>Definition:</b> <a href="RepoInfo_8cc_source.html#l00631">RepoInfo.cc:631</a></div></div> <div class="ttc" id="classzypp_1_1repo_1_1Downloader_html_abce6a2457b2517011c37f5d723ea9ba8"><div class="ttname"><a href="classzypp_1_1repo_1_1Downloader.html#abce6a2457b2517011c37f5d723ea9ba8">zypp::repo::Downloader::repoInfo</a></div><div class="ttdeci">const RepoInfo & repoInfo() const</div><div class="ttdef"><b>Definition:</b> <a href="Downloader_8h_source.html#l00058">Downloader.h:58</a></div></div> <div class="ttc" id="classzypp_1_1Fetcher_html_a63506014903b608d38ca4d96dc1573e5"><div class="ttname"><a href="classzypp_1_1Fetcher.html#a63506014903b608d38ca4d96dc1573e5">zypp::Fetcher::start</a></div><div class="ttdeci">void start(const Pathname &dest_dir, MediaSetAccess &media, const ProgressData::ReceiverFnc &progress=ProgressData::ReceiverFnc())</div><div class="ttdoc">start the transfer to a destination directory dest_dir You have to provde a media set access media to...</div><div class="ttdef"><b>Definition:</b> <a href="Fetcher_8cc_source.html#l00872">Fetcher.cc:872</a></div></div> <div class="ttc" id="KeyContext_8h_html"><div class="ttname"><a href="KeyContext_8h.html">KeyContext.h</a></div></div> <div class="ttc" id="namespaceMediaSetAccess_html"><div class="ttname"><a href="namespaceMediaSetAccess.html">MediaSetAccess</a></div></div> <div class="ttc" id="Logger_8h_html"><div class="ttname"><a href="Logger_8h.html">Logger.h</a></div></div> <div class="ttc" id="classzypp_1_1repo_1_1Downloader_html_a32d1f8b29070810bc6c7a31b403822cc"><div class="ttname"><a href="classzypp_1_1repo_1_1Downloader.html#a32d1f8b29070810bc6c7a31b403822cc">zypp::repo::Downloader::download</a></div><div class="ttdeci">virtual void download(MediaSetAccess &media, const Pathname &dest_dir, const ProgressData::ReceiverFnc &progress=ProgressData::ReceiverFnc())</div><div class="ttdoc">Download metadata to a local directory.</div><div class="ttdef"><b>Definition:</b> <a href="Downloader_8cc_source.html#l00042">Downloader.cc:42</a></div></div> <div class="ttc" id="classzypp_1_1SignatureFileChecker_html_a9391d2f36b62147a29cfeba0f971f58d"><div class="ttname"><a href="classzypp_1_1SignatureFileChecker.html#a9391d2f36b62147a29cfeba0f971f58d">zypp::SignatureFileChecker::fileValidated</a></div><div class="ttdeci">bool fileValidated() const</div><div class="ttdoc">Return whether the last file passed to operator() was actually sucessfully verified.</div><div class="ttdef"><b>Definition:</b> <a href="FileChecker_8h_source.html#l00137">FileChecker.h:137</a></div></div> <div class="ttc" id="classzypp_1_1filesystem_1_1PathInfo_html"><div class="ttname"><a href="classzypp_1_1filesystem_1_1PathInfo.html">zypp::filesystem::PathInfo</a></div><div class="ttdoc">Wrapper class for ::stat/::lstat.</div><div class="ttdef"><b>Definition:</b> <a href="PathInfo_8h_source.html#l00220">PathInfo.h:220</a></div></div> <div class="ttc" id="ZYppCallbacks_8h_html"><div class="ttname"><a href="ZYppCallbacks_8h.html">ZYppCallbacks.h</a></div></div> <div class="ttc" id="classzypp_1_1RepoStatus_html"><div class="ttname"><a href="classzypp_1_1RepoStatus.html">zypp::RepoStatus</a></div><div class="ttdoc">Track changing files or directories.</div><div class="ttdef"><b>Definition:</b> <a href="RepoStatus_8h_source.html#l00038">RepoStatus.h:38</a></div></div> <div class="ttc" id="namespacezypp_html_ae95ba3a6af05a2b35ed49092f78ce2b3"><div class="ttname"><a href="namespacezypp.html#ae95ba3a6af05a2b35ed49092f78ce2b3">zypp::FileChecker</a></div><div class="ttdeci">function< void(const Pathname &file)> FileChecker</div><div class="ttdoc">Functor signature used to check files.</div><div class="ttdef"><b>Definition:</b> <a href="FileChecker_8h_source.html#l00028">FileChecker.h:28</a></div></div> <div class="ttc" id="classzypp_1_1repo_1_1Downloader_html_a79adc470a7ddc166087823cbe86f78ec"><div class="ttname"><a href="classzypp_1_1repo_1_1Downloader.html#a79adc470a7ddc166087823cbe86f78ec">zypp::repo::Downloader::status</a></div><div class="ttdeci">virtual RepoStatus status(MediaSetAccess &media)</div><div class="ttdoc">Status of the remote repository.</div><div class="ttdef"><b>Definition:</b> <a href="Downloader_8cc_source.html#l00036">Downloader.cc:36</a></div></div> <div class="ttc" id="structzypp_1_1KeyContext_html_a2bae9838ca47bb6e72d563fe573a1c2c"><div class="ttname"><a href="structzypp_1_1KeyContext.html#a2bae9838ca47bb6e72d563fe573a1c2c">zypp::KeyContext::setRepoInfo</a></div><div class="ttdeci">void setRepoInfo(const RepoInfo &repoinfo)</div><div class="ttdef"><b>Definition:</b> <a href="KeyContext_8h_source.html#l00016">KeyContext.h:16</a></div></div> <div class="ttc" id="classzypp_1_1filesystem_1_1Pathname_html"><div class="ttname"><a href="classzypp_1_1filesystem_1_1Pathname.html">zypp::filesystem::Pathname</a></div><div class="ttdoc">Pathname.</div><div class="ttdef"><b>Definition:</b> <a href="Pathname_8h_source.html#l00043">Pathname.h:43</a></div></div> <div class="ttc" id="classzypp_1_1Fetcher_html_a70bf86b79179cbbe00a67bb776596e4a"><div class="ttname"><a href="classzypp_1_1Fetcher.html#a70bf86b79179cbbe00a67bb776596e4a">zypp::Fetcher::enqueue</a></div><div class="ttdeci">void enqueue(const OnMediaLocation &resource, const FileChecker &checker=FileChecker())</div><div class="ttdoc">Enqueue a object for transferal, they will not be transferred until start() is called.</div><div class="ttdef"><b>Definition:</b> <a href="Fetcher_8cc_source.html#l00857">Fetcher.cc:857</a></div></div> <div class="ttc" id="namespacezypp_html"><div class="ttname"><a href="namespacezypp.html">zypp</a></div><div class="ttdoc">Easy-to use interface to the ZYPP dependency resolver.</div><div class="ttdef"><b>Definition:</b> <a href="CodePitfalls_8doc_source.html#l00001">CodePitfalls.doc:1</a></div></div> <div class="ttc" id="String_8h_html"><div class="ttname"><a href="String_8h.html">String.h</a></div></div> <div class="ttc" id="classzypp_1_1SignatureFileChecker_html_a98fb8a830762ee007f6111a67d922fd0"><div class="ttname"><a href="classzypp_1_1SignatureFileChecker.html#a98fb8a830762ee007f6111a67d922fd0">zypp::SignatureFileChecker::setKeyContext</a></div><div class="ttdeci">void setKeyContext(const KeyContext &keycontext)</div><div class="ttdoc">Set context for this checker.</div><div class="ttdef"><b>Definition:</b> <a href="FileChecker_8cc_source.html#l00119">FileChecker.cc:119</a></div></div> </div><!-- fragment --></div><!-- contents --> </div><!-- doc-content --> <!-- start footer part --> <div id="nav-path" class="navpath"><!-- id is needed for treeview function! --> <ul> <li class="navelem"><a class="el" href="dir_c187b43c6f283d9fc95eff3f44ce072a.html">zypp</a></li><li class="navelem"><a class="el" href="dir_87611d73de4eb3bd0276658efbbf5b67.html">repo</a></li><li class="navelem"><a class="el" href="Downloader_8cc.html">Downloader.cc</a></li> <li class="footer">Generated by <a href="http://www.doxygen.org/index.html"> <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.15 </li> </ul> </div> </body> </html>