call verifySpec()
authorroot <devnull@localhost>
Fri, 17 May 1996 18:37:46 +0000 (18:37 +0000)
committerroot <devnull@localhost>
Fri, 17 May 1996 18:37:46 +0000 (18:37 +0000)
CVS patchset: 574
CVS date: 1996/05/17 18:37:46

rpm.c

diff --git a/rpm.c b/rpm.c
index 57f4bf8..d1c12ab 100755 (executable)
--- 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 {