<div>take a look at this little script</div>
<div> </div>
<div>rpm=$1<br>arch=$2<br><br>rpm -qa \<br>| grep $rpm \<br>| while read rpm<br>do<br>       found=`rpm -qi $rpm | grep $arch`<br>       [ "$found" ] && echo $rpm<br>done</div>
<div> </div>
<div>a colleage (however it`s spelled) of my made that and it can find the architectures :D</div>
<div> </div>
<div>usage (when put in a file called rpmscript):</div>
<div> </div>
<div>rpmscript hal i386</div>
<div>hope this helps.</div>
<div> </div>
<div>good luck,</div>
<div>Mark.</div>
<div> </div>
<div><br><br> </div>
<div><span class="gmail_quote">2007/4/6, seth vidal <<a href="mailto:skvidal@linux.duke.edu">skvidal@linux.duke.edu</a>>:</span>
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">On Thu, 2007-04-05 at 23:05 +0200, Mark wrote:<br>> it sounds good.<br>><br>> but how is this flat file gonna be managed?
<br><br>cvs, I'd suspect.<br><br>> will there be a rpm that`s updating the flatfile with other rpm names<br>> incase they need to be added? or will it be a solid flat file that is<br>> gonna be delivered with fedora core 7 and won`t be updated?
<br><br>I'd say it's a file that can be downloaded from any repo. The pkgs in<br>the combined set of these files from all repos would be removed, if<br>present. Then we could just have the file be present in updates-released
<br>and be done with it.<br><br><br>> whatever one it is.. i wouldn`t go for a flatfile.. i think it`s<br>> better to make use of sqlite (yea yea.. that`s flatfile based).<br>> sqlite is needed for yum anyway so why not just use it for this
<br>> aswell.<br><br>yes, but sqlite files are no fun to put into cvs or $SCM<br><br><br>> but something different.. isn`t the basic problem of this all in yum<br>> or rpm? (i think yum) and wouldn`t it be better to just fix that.
<br><br>yes, but as I said earlier, it is way simpler to fix the issue at the<br>yum level than at the rpm level.<br><br>-sv<br><br><br>--<br>fedora-devel-list mailing list<br><a href="mailto:fedora-devel-list@redhat.com">
fedora-devel-list@redhat.com</a><br><a href="https://www.redhat.com/mailman/listinfo/fedora-devel-list">https://www.redhat.com/mailman/listinfo/fedora-devel-list</a><br></blockquote></div><br>