<br>Here&#39;s my dilemma (maybe I&#39;m taking the wrong approach)...<br><br>In the spec file for &#39;mypackage&#39;, I want to have a shell script as part of the %post<br>that does something based on the version of _another_ of my (already installed) packages<br>

<br>in pseudo code:<br><br>%post<br><br>VER=`rpm -q other_package --queryformat&#39;%{VERSION}&#39;<br>if VER &gt; 1.2 then<br>   do something<br>else<br>   do something different<br>fi<br><br>The trouble is that the RPM (or the version on my target (V4.0)) doesn&#39;t<br>

allow me to run rpm when rpm is already running (trying to install my package)<br><br>It complains about the database, etc. (I&#39;m omitting the actual error response<br>because I don&#39;t think it will help.<br><br>Its probably rpm protecting itself.  In my case the 2nd running is effectively<br>

read-only, but rpm doesn&#39;t care about that.<br><br>I can&#39;t really make it a &#39;dependency&#39; on a version because I&#39;d like the<br>%post to make an intelligent decision.<br><br>Am I doing this wrong?  Is there a better way? Do I need a newer &#39;rpm&#39;?<br>

Am I out of luck?<br><br>TIA<br>Fulko<br><br><br>