<html>
<head>
<meta http-equiv="Content-Type" content="text/html;
charset=windows-1252">
</head>
<body text="#000000" bgcolor="#FFFFFF">
<div class="moz-cite-prefix">find ./output -type f -name "*.rpm" |
xargs rpm -K | { grep -i "MISSING KEYS" || true } >
./rpm-gpg-key-missing.txt<br>
<br>
Scott<br>
<br>
On 18-07-26 03:46 PM, Penney, Don wrote:<br>
</div>
<blockquote type="cite"
cite="mid:6703202FD9FDFF4A8DA9ACF104AE129FBA2508C7@ALA-MBD.corp.ad.wrs.com">
<meta http-equiv="Content-Type" content="text/html;
charset=windows-1252">
<meta name="Generator" content="Microsoft Word 14 (filtered
medium)">
<style><!--
/* Font Definitions */
@font-face
{font-family:Calibri;
panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0in;
margin-bottom:.0001pt;
font-size:11.0pt;
font-family:"Calibri","sans-serif";}
a:link, span.MsoHyperlink
{mso-style-priority:99;
color:blue;
text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
{mso-style-priority:99;
color:purple;
text-decoration:underline;}
span.EmailStyle17
{mso-style-type:personal-compose;
font-family:"Calibri","sans-serif";
color:windowtext;}
.MsoChpDefault
{mso-style-type:export-only;
font-family:"Calibri","sans-serif";}
@page WordSection1
{size:8.5in 11.0in;
margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
{page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
<div class="WordSection1">
<p class="MsoNormal">Hi folks,<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">I was just running a fresh
download_mirror.sh execution and ran into a problem. I run it
as follows, to get timing info and record output:<o:p></o:p></p>
<p class="MsoNormal"><span
style="font-size:9.0pt;font-family:"Courier
New","serif"">time ./download_mirror.sh
2>&1 | tee dpenney.out<o:p></o:p></span></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">The script exited here:<o:p></o:p></p>
<p class="MsoNormal"><span
style="font-size:9.0pt;font-family:"Courier
New","serif"">--> run: sudo -E
yumdownloader -q -C --source python-voluptuous-0.8.9-1.el7<o:p></o:p></span></p>
<p class="MsoNormal"><span
style="font-size:9.0pt;font-family:"Courier
New","serif"">Looking for
python-voluptuous-0.8.9-1.el7.src.rpm<o:p></o:p></span></p>
<p class="MsoNormal"><span
style="font-size:9.0pt;font-family:"Courier
New","serif"">done!!<o:p></o:p></span></p>
<p class="MsoNormal"><span
style="font-size:9.0pt;font-family:"Courier
New","serif"">finish 1st round of RPM
downloading successfully!<o:p></o:p></span></p>
<p class="MsoNormal"><span
style="font-size:9.0pt;font-family:"Courier
New","serif"">ERROR: -------RPMs missing 6
in yumdownloader with L1 match ---------------<o:p></o:p></span></p>
<p class="MsoNormal"><span
style="font-size:9.0pt;font-family:"Courier
New","serif""><o:p> </o:p></span></p>
<p class="MsoNormal"><span
style="font-size:9.0pt;font-family:"Courier
New","serif"">real 84m3.238s<o:p></o:p></span></p>
<p class="MsoNormal"><span
style="font-size:9.0pt;font-family:"Courier
New","serif"">user 62m49.391s<o:p></o:p></span></p>
<p class="MsoNormal"><span
style="font-size:9.0pt;font-family:"Courier
New","serif"">sys 9m46.608s<o:p></o:p></span></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">It seemed like an odd place to finish “1<sup>st</sup>
round”, so I took a look around there, checking various
timestamps to try to see where it quit, and found the last
command executed was this line:<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal"><span
style="font-size:9.0pt;font-family:"Courier
New","serif"">## verify all RPMs SRPMs we
download for the GPG keys<o:p></o:p></span></p>
<p class="MsoNormal"><span
style="font-size:9.0pt;font-family:"Courier
New","serif"">find ./output -type f -name
"*.rpm" | xargs rpm -K | grep -i "MISSING KEYS" >
./rpm-gpg-key-missing.txt<o:p></o:p></span></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Because I had no missing keys, the last
piped command returned a non-zero status. And since this
script is launched with “bash -e” on the first line, and I ran
the script directly instead of “bash download_mirror.sh”, the
script exited at this point.<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">The other download scripts use “bash -e”
here as well. Since these are called directly from
download_mirror.sh, they could be exiting early silently.<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Cheers,<o:p></o:p></p>
<p class="MsoNormal">Don.<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal"><b><span
style="font-size:10.0pt;font-family:"Arial","sans-serif";color:#333333">Don
Penney</span></b><span
style="font-size:10.0pt;font-family:"Arial","sans-serif";color:#333333">,
Developer,
</span><b><span
style="font-size:10.0pt;font-family:"Arial","sans-serif";color:#CC0000">Wind
River</span></b><br>
<br>
<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
<!--'"--><br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
Starlingx-discuss mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Starlingx-discuss@lists.starlingx.io">Starlingx-discuss@lists.starlingx.io</a>
<a class="moz-txt-link-freetext" href="http://lists.starlingx.io/cgi-bin/mailman/listinfo/starlingx-discuss">http://lists.starlingx.io/cgi-bin/mailman/listinfo/starlingx-discuss</a>
</pre>
</blockquote>
<p><br>
</p>
</body>
</html>