<br>Here's my dilemma (maybe I'm taking the wrong approach)...<br><br>In the spec file for 'mypackage', 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'%{VERSION}'<br>if VER > 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'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'm omitting the actual error response<br>because I don'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't care about that.<br><br>I can't really make it a 'dependency' on a version because I'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 'rpm'?<br>
Am I out of luck?<br><br>TIA<br>Fulko<br><br><br>