From 7e602435803b417a5cba69ae9012d3a87680eadd Mon Sep 17 00:00:00 2001 From: Marcin Krol Date: Fri, 23 Feb 2018 09:11:47 +0000 Subject: [PATCH] - oops, patch for previous commit --- notrans.patch | 37 +++++++++++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) create mode 100644 notrans.patch diff --git a/notrans.patch b/notrans.patch new file mode 100644 index 0000000..5f2b92d --- /dev/null +++ b/notrans.patch @@ -0,0 +1,37 @@ +backport --nopretrans, --noposttrans options + +--- rpm-4.5/lib/poptI.c~ 2016-12-26 23:05:38.000000000 +0200 ++++ rpm-4.5/lib/poptI.c 2016-12-26 23:07:43.315470552 +0200 +@@ -303,6 +303,10 @@ + { "noscripts", '\0', 0, NULL, RPMCLI_POPT_NOSCRIPTS, + N_("do not execute package scriptlet(s)"), NULL }, + ++ { "nopretrans", '\0', POPT_BIT_SET|POPT_ARGFLAG_DOC_HIDDEN, ++ &rpmIArgs.transFlags, RPMTRANS_FLAG_NOPRETRANS, ++ N_("do not execute %%pretrans scriptlet (if any)"), NULL }, ++ + { "nopre", '\0', POPT_BIT_SET|POPT_ARGFLAG_DOC_HIDDEN, &rpmIArgs.transFlags, + RPMTRANS_FLAG_NOPRE, + N_("do not execute %%pre scriptlet (if any)"), NULL }, +@@ -315,6 +319,9 @@ + { "nopostun", '\0', POPT_BIT_SET|POPT_ARGFLAG_DOC_HIDDEN, &rpmIArgs.transFlags, + RPMTRANS_FLAG_NOPOSTUN, + N_("do not execute %%postun scriptlet (if any)"), NULL }, ++ { "noposttrans", '\0', POPT_BIT_SET|POPT_ARGFLAG_DOC_HIDDEN, ++ &rpmIArgs.transFlags, RPMTRANS_FLAG_NOPOSTTRANS, ++ N_("do not execute %%postrans scriptlet (if any)"), NULL }, + + { "nodigest", '\0', POPT_ARGFLAG_DOC_HIDDEN, 0, RPMCLI_POPT_NODIGEST, + N_("don't verify package digest(s)"), NULL }, +--- rpm-4.5/lib/rpmlib.h~ 2016-12-26 23:24:14.000000000 +0200 ++++ rpm-4.5/lib/rpmlib.h 2016-12-26 23:27:26.960081925 +0200 +@@ -943,7 +943,8 @@ + + /* 26 unused */ + RPMTRANS_FLAG_NOFDIGESTS = (1 << 27), /*!< from --nofdigests */ +- /* 28-29 unused */ ++ RPMTRANS_FLAG_NOPRETRANS = (1 << 28), /*!< from --nopretrans */ ++ RPMTRANS_FLAG_NOPOSTTRANS = (1 << 29), /*!< from --noposttrans */ + RPMTRANS_FLAG_NOCONFIGS = (1 << 30), /*!< from --noconfigs */ + /* 31 unused */ + } rpmtransFlags; -- 2.46.0