Pixel <[EMAIL PROTECTED]> writes:

> > Unfortunately the real effect was that postinstall (and I guess
> > preinstall) scripts were NEVER executed. Not only for kernel but for ANY
> > package whatever.
> 
> agreed, using DURING_INSTALL for this seems a bad idea.
> 
> we'd better run ldconfig and update-menus than dropping a few other things
> done in %post's.
> 
> maybe we could have another (different) way of skipping ldconfig and
> update-menus...

We already have a good way to skip ldconfig and update-menus
during install.

They both check for the envvar and exit(0) if they find it.


[gc@obiwan ~] strings /usr/bin/update-menus | grep DURING
DURING_INSTALL
[gc@obiwan ~] strings /sbin/ldconfig  | grep DURING
DURING_INSTALL


And they do:

if (getenv("DURING_INSTALL")) exit(0);


-- 
Guillaume Cottenceau - http://people.mandrakesoft.com/~gc/

Reply via email to