From: root Date: Fri, 6 Dec 1996 16:51:52 +0000 (+0000) Subject: if spec check fails, fail. X-Git-Tag: rpm-4.4-release~4522 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=968063fbab40cafd00b9747254e6ea729c777ce5;p=platform%2Fupstream%2Frpm.git if spec check fails, fail. CVS patchset: 1213 CVS date: 1996/12/06 16:51:52 --- diff --git a/rpm.c b/rpm.c index dd539f1..747e6b8 100755 --- 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 {