https://bugzilla.novell.com/show_bug.cgi?id=384254
User werner@novell.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=384254#c53
--- Comment #53 from Dr. Werner Fink 2008-05-15 08:18:50 MST ---
Created an attachment (id=215606)
--> (https://bugzilla.novell.com/attachment.cgi?id=215606)
C function for determining if rpm scriptlet is used
I've submitted an insserv version with the new C function underrpm()
which determines if insserv is executed from a parent with the
command line
/bin/sh /var/tmp/rpm-tmp.<XXXXXX> <NUMBER>
(<XXXXXX> random value, <NUMBER>={0,1,2}) which is the normal command
line used by rpm for %pre, %post, %preun, and %postun scriptlets.
The question remains if i should use the librpm for comparsion as
/bin/sh is defined with %_buildshell and /var/tmp with %_tmppath in
the rpm rc files. Currently I use hard coded path but can simply
switch over to librpm (see attachment). But even if the current
rpm package overwrites %_buildshell and %_tmppath in its build spec
the global rc files do not fit this.
--
Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.