Re: post post installation hook

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

 



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@xxxxxxxxx>
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

_______________________________________________
Rpm-list mailing list
Rpm-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/rpm-list

[Index of Archives]     [RPM Ecosystem]     [Linux Kernel]     [Red Hat Install]     [PAM]     [Red Hat Watch]     [Red Hat Development]     [Red Hat]     [Gimp]     [Yosemite News]     [IETF Discussion]

  Powered by Linux