if spec check fails, fail.
authorroot <devnull@localhost>
Fri, 6 Dec 1996 16:51:52 +0000 (16:51 +0000)
committerroot <devnull@localhost>
Fri, 6 Dec 1996 16:51:52 +0000 (16:51 +0000)
CVS patchset: 1213
CVS date: 1996/12/06 16:51:52

rpm.c

diff --git a/rpm.c b/rpm.c
index dd539f1..747e6b8 100755 (executable)
--- a/rpm.c
+++ b/rpm.c
@@ -250,16 +250,15 @@ int build(char *arg, int buildAmount, char *passPhrase,
     fclose(f);
     if (s) {
        if (verifySpec(s)) {
-           /* For now, warn and try to continue */
-           res = 1;
            fprintf(stderr, "\n%cSpec file check failed!!\n", 7);
            fprintf(stderr,
                    "Tell rpm-list@redhat.com if this is incorrect.\n\n");
-           sleep(5);
-       }
-       if (doBuild(s, buildAmount, passPhrase)) {
-           fprintf(stderr, _("Build failed.\n"));
            res = 1;
+       } else {
+           if (doBuild(s, buildAmount, passPhrase)) {
+               fprintf(stderr, _("Build failed.\n"));
+               res = 1;
+           }
        }
         freeSpec(s);
     } else {