summaryrefslogtreecommitdiff
path: root/rpmio
diff options
context:
space:
mode:
Diffstat (limited to 'rpmio')
-rw-r--r--rpmio/macro.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/rpmio/macro.c b/rpmio/macro.c
index 4f9be0700..cf79c9c05 100644
--- a/rpmio/macro.c
+++ b/rpmio/macro.c
@@ -2014,6 +2014,11 @@ rpmInitMacros(MacroContext mc, const char * macrofiles)
/* Read macros from each file. */
for (i = 0; i < ac; i++) {
+ if (strstr(av[i], ".rpmnew") ||
+ strstr(av[i], ".rpmsave") ||
+ strstr(av[i], ".rpmorig")) {
+ continue;
+ }
(void) rpmLoadMacroFile(mc, av[i]);
av[i] = _free(av[i]);
}