<table cellspacing="0" cellpadding="0" border="0" ><tr><td valign="top" style="font: inherit;"><br>The new B does depend on new A.<br>You know, I am testing the package, there is a status checking in the %pre scriptlet, sometime it fail. The two packages may exit at the same time for the same reason.<br>My
problem is why the separate upgrade works fine with a clean exit, leave
the old installed one untouched, but one line command remove the old
one.<br><br>rpm -Uvh A_2.0.rpm <br>rpm -Uvh B_2.0.rpm<br><br>clean exit<br><br>====================<br><br>rpm -Uvh A_2.0.rpm B_2.0.rpm<br><br>exit and remove the old one, we don't want this.<br><br>Thanks.<br>--- On <b>Wed, 12/10/08, devzero2000 <i>&lt;devzero2000@rpm5.org&gt;</i></b> wrote:<br><blockquote style="border-left: 2px solid rgb(16, 16, 255); margin-left: 5px; padding-left: 5px;">From: devzero2000 &lt;devzero2000@rpm5.org&gt;<br>Subject: Re: Problem about upgrade multiple rpm package.<br>To: qiuhd@yahoo.com.cn, "General discussion about the RPM package manager" &lt;rpm-list@lists.rpm.org&gt;<br>Date: Wednesday, December 10, 2008, 9:28 PM<br><br><div id="yiv1783810797"><div style="margin-left: 40px;">On Wed, Dec 10, 2008 at 9:13 AM, qiuhd &lt;<a rel="nofollow" target="_blank" href="mailto:qiuhd@yahoo.com.cn">qiuhd@yahoo.com.cn</a>&gt; wrote:<br></div><div style="margin-left: 40px;">&gt; Hi, Guys<br>&gt; Please help me about this upgrade
 problem.<br>
&gt; I built two packages, A and B, B has dependency on A. I have a old version<br>&gt; of A ( A_1.0.rpm) installed on my linux system, now I want to upgrade to the<br>&gt; new version by execute<br>&gt; rpm -Uvh A_2.0.rpm B_2.0.rpm<br>
&gt; If the %pre scriptlet failed because of some reason, I think the upgrade<br>&gt; should abort and leave the old installed on untouched.<br><br></div>The new B depends on the new A ? From your description i think no. Why should be the upgrade abort all ? <br>
If you use a C rpm - unrelated a A but with %pre failing - what do you think should be happen on : rpm -Uvh C_1_0.rpm B_2_0.rpm ?<br>B should be failing to upgrade ? <br><br>Regards<br><br>
</div></blockquote></td></tr></table><br>