[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]
Re: post post installation hook
- From: Michael Jennings <mej kainx org>
- To: rpm-list redhat com
- Subject: Re: post post installation hook
- Date: Fri, 8 Sep 2006 11:48:01 -0400
On Friday, 08 September 2006, at 13:41:42 (+0200),
Lars Wilke wrote:
> i stumbled upon the following situation:
>
> 1. Installed package A
> 2. Update package A with a newer Version B
> 3. oops :)
I'm confused by your lettering. Use of "A" and "B" would tend to
indicate that "B" is a package with a different name, SRPM, etc. from
package "A". However, it's also possible you meant that "B" is a
newer version of package "A" (which is confusing). Which did you
mean?
If upgrading package A version 1 to version 2 deletes a user, the most
likely culprit is that the %preun or %postun scriptlet is poorly
written so as to fail to take into account the $1 parameter during an
upgrade. See the following URL:
http://wraptastic.org/maxrpm/max-rpm.html#s2-rpm-rw-build-finishing-touches
Read the Creating (Un)Install Scripts sections vary carefully, paying
close attention to any mention of "$1" or the scriptlet "argument."
Michael
--
Michael Jennings (a.k.a. KainX) http://www.kainx.org/ <mej kainx org>
n + 1, Inc., http://www.nplus1.net/ Author, Eterm (www.eterm.org)
-----------------------------------------------------------------------
"You can bend over for Blue Cross, and you can bend over for Kaiser.
Blue Cross is nice because they give you two ways to bend over."
-- anonymous co-worker
[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]