summaryrefslogtreecommitdiff
path: root/build.c
diff options
context:
space:
mode:
authorjbj <devnull@localhost>1999-12-12 21:14:05 +0000
committerjbj <devnull@localhost>1999-12-12 21:14:05 +0000
commit8f481702d8203c95d390f6eac93434019cf8d797 (patch)
tree16bb1c1650660851f355779a70727e934f26fc9d /build.c
parent292b9f10befbeb1044d2db98f62de0e65aff3317 (diff)
downloadlibrpm-tizen-8f481702d8203c95d390f6eac93434019cf8d797.tar.gz
librpm-tizen-8f481702d8203c95d390f6eac93434019cf8d797.tar.bz2
librpm-tizen-8f481702d8203c95d390f6eac93434019cf8d797.zip
reload macros from cmd line when re-reading config files.
CVS patchset: 3479 CVS date: 1999/12/12 21:14:05
Diffstat (limited to 'build.c')
-rw-r--r--build.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/build.c b/build.c
index 95f9cf1fb..63322e71b 100644
--- a/build.c
+++ b/build.c
@@ -294,7 +294,7 @@ int build(const char *arg, struct rpmBuildArguments *ba, const char *passPhrase,
printf(_("Building for target %s\n"), target);
/* Read in configuration for target. */
- freeMacros(NULL); /* XXX macros from CLI are destroyed too */
+ rpmFreeMacros(NULL);
rpmReadConfigFiles(rcfile, target);
rc = buildForTarget(arg, ba, passPhrase, fromTarball, cookie,
force, nodeps);
@@ -304,7 +304,7 @@ int build(const char *arg, struct rpmBuildArguments *ba, const char *passPhrase,
exit:
/* Restore original configuration. */
- freeMacros(NULL); /* XXX macros from CLI are destroyed too */
+ rpmFreeMacros(NULL);
rpmReadConfigFiles(rcfile, NULL);
return rc;
}