diff options
author | jbj <devnull@localhost> | 1999-04-17 14:23:42 +0000 |
---|---|---|
committer | jbj <devnull@localhost> | 1999-04-17 14:23:42 +0000 |
commit | ba617e479df389ae2faf9866e92e365756ab2b6d (patch) | |
tree | 190671b4ed2dde4b5b54d25fb87f382862680faf /rpm.c | |
parent | 68b321a44fb9b043909747cccec51c53613dd347 (diff) | |
download | librpm-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-x | rpm.c | 13 |
1 files changed, 6 insertions, 7 deletions
@@ -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; |