if spec check fails, fail.

CVS patchset: 1213
CVS date: 1996/12/06 16:51:52
This commit is contained in:
root 1996-12-06 16:51:52 +00:00
parent 374bbf39c9
commit 968063fbab
1 changed files with 5 additions and 6 deletions

11
rpm.c
View File

@ -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 {