[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: How to pretend an update




On Sep 22, 2006, at 7:36 AM, Gordian, Martin wrote:

Soory, I should have sayed that I'm using -Uhv but rpm does not give this information into the %pre %post scripts ($1).
 
So -Uhv does not work it out.
 


The 1st argument to the script is used to detect whether installing or upgrading.
E.g. in %pst $1 >1 if upgrading, $1 == 1 if installing.

Renaming (and Obsolete'ing the old) is not an upgtade case because the package
is being renamed.

What are you trying to do?

73 de Jeff


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]