how disable %pretrans scripts?
Jeffrey Johnson
n3npq at me.com
Mon Dec 26 22:17:51 CET 2016
> On Dec 26, 2016, at 4:02 PM, Elan Ruusamäe <glen at pld-linux.org> wrote:
>
> rpm has --notriggers, —noscripts
>
Yes.
> but neither of them cover disabling %pretrans
>
Yes (arguably preserving ancient rpm legacy option behavior).
(aside)
Changing the define in rpmts.h
#define _noTransTriggers \
( RPMTRANS_FLAG_NOTRIGGERPREIN | \
RPMTRANS_FLAG_NOTRIGGERIN | \
RPMTRANS_FLAG_NOTRIGGERUN | \
RPMTRANS_FLAG_NOTRIGGERPOSTUN \
)
will change what —notriggers disables.
You can also uncomment this in li8b/poptI.c
#ifdef NOTYET /* XXX multiple identical options forces popt callback. */
{ "noscripts", '\0', POPT_BIT_SET,
&rpmIArgs.transFlags, (_noTransScripts|_noTransTriggers),
N_("do not execute package scriptlet(s)"), NULL },
#else
{ "noscripts", '\0', 0, NULL, RPMCLI_POPT_NOSCRIPTS,
N_("do not execute package scriptlet(s)"), NULL },
#endif
*shrug*
> if no commandline option,
There is —nopretrans.
> is there way to turn it off without rebuilding rpm?
>
There are POPT aliases in /etc/popt if you simply MUST avoid rebuilding rpm.
73 de Jeff
k
> --
> glen
>
> _______________________________________________
> pld-devel-en mailing list
> pld-devel-en at lists.pld-linux.org
> http://lists.pld-linux.org/mailman/listinfo/pld-devel-en
More information about the pld-devel-en
mailing list