temp hack to warn on spec file check errors
authorroot <devnull@localhost>
Tue, 2 Jul 1996 21:45:16 +0000 (21:45 +0000)
committerroot <devnull@localhost>
Tue, 2 Jul 1996 21:45:16 +0000 (21:45 +0000)
CVS patchset: 720
CVS date: 1996/07/02 21:45:16

rpm.c

diff --git a/rpm.c b/rpm.c
index 437b67a..9b8a802 100755 (executable)
--- a/rpm.c
+++ b/rpm.c
@@ -196,12 +196,14 @@ 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 -- tell Marc\n\n", 7);
+           sleep(1);
+       }
+       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 {