summaryrefslogtreecommitdiff
path: root/rpm.c
diff options
context:
space:
mode:
authorroot <devnull@localhost>1996-05-17 18:37:46 +0000
committerroot <devnull@localhost>1996-05-17 18:37:46 +0000
commit647d0794e12a7034560e78564099413fbee1e5a0 (patch)
treeaa94d39a9cdf4379468110a3258180fb9ac71d23 /rpm.c
parentf28f51fc0258328844e7ccd50b407522e7bab442 (diff)
downloadrpm-647d0794e12a7034560e78564099413fbee1e5a0.tar.gz
rpm-647d0794e12a7034560e78564099413fbee1e5a0.tar.bz2
rpm-647d0794e12a7034560e78564099413fbee1e5a0.zip
call verifySpec()
CVS patchset: 574 CVS date: 1996/05/17 18:37:46
Diffstat (limited to 'rpm.c')
-rwxr-xr-xrpm.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/rpm.c b/rpm.c
index 57f4bf892..d1c12abf8 100755
--- a/rpm.c
+++ b/rpm.c
@@ -184,9 +184,13 @@ int build(char * arg, int buildAmount, char *passPhrase) {
s = parseSpec(f, specfile);
fclose(f);
if (s) {
- if (doBuild(s, buildAmount, passPhrase)) {
- fprintf(stderr, _("Build failed.\n"));
+ if (verifySpec(s)) {
res = 1;
+ } else {
+ if (doBuild(s, buildAmount, passPhrase)) {
+ fprintf(stderr, _("Build failed.\n"));
+ res = 1;
+ }
}
freeSpec(s);
} else {