]> git.pld-linux.org Git - packages/rpm.git/blob - notrans.patch
backport --nopretrans, --noposttrans options
[packages/rpm.git] / notrans.patch
1 backport --nopretrans, --noposttrans options
2
3 --- rpm-4.5/lib/poptI.c~        2016-12-26 23:05:38.000000000 +0200
4 +++ rpm-4.5/lib/poptI.c 2016-12-26 23:07:43.315470552 +0200
5 @@ -303,6 +303,10 @@
6   { "noscripts", '\0', 0, NULL, RPMCLI_POPT_NOSCRIPTS,
7         N_("do not execute package scriptlet(s)"), NULL },
8  
9 + { "nopretrans", '\0', POPT_BIT_SET|POPT_ARGFLAG_DOC_HIDDEN,
10 +       &rpmIArgs.transFlags, RPMTRANS_FLAG_NOPRETRANS,
11 +       N_("do not execute %%pretrans scriptlet (if any)"), NULL },
12 +
13   { "nopre", '\0', POPT_BIT_SET|POPT_ARGFLAG_DOC_HIDDEN, &rpmIArgs.transFlags,
14         RPMTRANS_FLAG_NOPRE,
15         N_("do not execute %%pre scriptlet (if any)"), NULL },
16 @@ -315,6 +319,9 @@
17   { "nopostun", '\0', POPT_BIT_SET|POPT_ARGFLAG_DOC_HIDDEN, &rpmIArgs.transFlags,
18         RPMTRANS_FLAG_NOPOSTUN,
19         N_("do not execute %%postun scriptlet (if any)"), NULL },
20 + { "noposttrans", '\0', POPT_BIT_SET|POPT_ARGFLAG_DOC_HIDDEN,
21 +       &rpmIArgs.transFlags, RPMTRANS_FLAG_NOPOSTTRANS,
22 +       N_("do not execute %%postrans scriptlet (if any)"), NULL },
23  
24   { "nodigest", '\0', POPT_ARGFLAG_DOC_HIDDEN, 0, RPMCLI_POPT_NODIGEST,
25          N_("don't verify package digest(s)"), NULL },
26 --- rpm-4.5/lib/rpmlib.h~       2016-12-26 23:24:14.000000000 +0200
27 +++ rpm-4.5/lib/rpmlib.h        2016-12-26 23:27:26.960081925 +0200
28 @@ -943,7 +943,8 @@
29  
30      /* 26 unused */
31      RPMTRANS_FLAG_NOFDIGESTS   = (1 << 27),    /*!< from --nofdigests */
32 -    /* 28-29 unused */
33 +    RPMTRANS_FLAG_NOPRETRANS   = (1 << 28),    /*!< from --nopretrans */
34 +    RPMTRANS_FLAG_NOPOSTTRANS  = (1 << 29),    /*!< from --noposttrans */
35      RPMTRANS_FLAG_NOCONFIGS    = (1 << 30),    /*!< from --noconfigs */
36      /* 31 unused */
37  } rpmtransFlags;
This page took 0.079776 seconds and 3 git commands to generate.