summaryrefslogtreecommitdiff
path: root/rpm.c
diff options
context:
space:
mode:
authorjbj <devnull@localhost>1999-04-17 14:23:42 +0000
committerjbj <devnull@localhost>1999-04-17 14:23:42 +0000
commitba617e479df389ae2faf9866e92e365756ab2b6d (patch)
tree190671b4ed2dde4b5b54d25fb87f382862680faf /rpm.c
parent68b321a44fb9b043909747cccec51c53613dd347 (diff)
downloadlibrpm-tizen-ba617e479df389ae2faf9866e92e365756ab2b6d.tar.gz
librpm-tizen-ba617e479df389ae2faf9866e92e365756ab2b6d.tar.bz2
librpm-tizen-ba617e479df389ae2faf9866e92e365756ab2b6d.zip
check build prerequisites before building from specfile.
CVS patchset: 3010 CVS date: 1999/04/17 14:23:42
Diffstat (limited to 'rpm.c')
-rwxr-xr-xrpm.c13
1 files changed, 6 insertions, 7 deletions
diff --git a/rpm.c b/rpm.c
index 2c9864e4a..22f694f19 100755
--- a/rpm.c
+++ b/rpm.c
@@ -611,7 +611,7 @@ int main(int argc, char ** argv) {
if (queryArgs.queryFormat) free(queryArgs.queryFormat);
memset(&queryArgs, 0, sizeof(queryArgs));
- if (buildArgs.buildRootOverride) free(buildArgs.buildRootOverride);
+ if (buildArgs.buildRootOverride) xfree(buildArgs.buildRootOverride);
if (buildArgs.targets) free(buildArgs.targets);
memset(&buildArgs, 0, sizeof(buildArgs));
buildArgs.buildChar = ' ';
@@ -1027,9 +1027,10 @@ int main(int argc, char ** argv) {
"installation, erasure, and verification"));
if (bigMode != MODE_INSTALL && bigMode != MODE_UNINSTALL &&
+ bigMode != MODE_BUILD && bigMode != MODE_TARBUILD &&
bigMode != MODE_VERIFY && noDeps)
argerror(_("--nodeps may only be specified during package "
- "installation, erasure, and verification"));
+ "building, installation, erasure, and verification"));
if (bigMode != MODE_VERIFY && noFiles)
argerror(_("--nofiles may only be specified during package "
@@ -1244,8 +1245,7 @@ int main(int argc, char ** argv) {
if (doSourceInstall("/", pkg, &specFile, &cookie))
exit(EXIT_FAILURE);
- if (build(specFile, buildArgs.buildAmount, passPhrase, buildArgs.buildRootOverride,
- 0, buildArgs.noBuild, cookie, rcfile, buildArgs.targets, force)) {
+ if (build(specFile, &buildArgs, passPhrase, 0, cookie, rcfile, force, noDeps)) {
exit(EXIT_FAILURE);
}
free(cookie);
@@ -1293,9 +1293,8 @@ int main(int argc, char ** argv) {
}
while ((pkg = poptGetArg(optCon)))
- if (build(pkg, buildArgs.buildAmount, passPhrase, buildArgs.buildRootOverride,
- bigMode == MODE_TARBUILD, buildArgs.noBuild, NULL,
- rcfile, buildArgs.targets, force)) {
+ if (build(pkg, &buildArgs, passPhrase, bigMode == MODE_TARBUILD,
+ NULL, rcfile, force, noDeps)) {
exit(EXIT_FAILURE);
}
break;