From 968063fbab40cafd00b9747254e6ea729c777ce5 Mon Sep 17 00:00:00 2001 From: root Date: Fri, 6 Dec 1996 16:51:52 +0000 Subject: [PATCH] if spec check fails, fail. CVS patchset: 1213 CVS date: 1996/12/06 16:51:52 --- rpm.c | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) 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 { -- 2.7.4