Fix broken package dependence handling mentioned by Brook Milligan on

"tech-pkg@netbsd.org".
This commit is contained in:
tron 1998-09-08 21:54:01 +00:00
parent ba78af57df
commit 63ef9847d5
1 changed files with 8 additions and 7 deletions

View File

@ -1,11 +1,11 @@
/* $NetBSD: perform.c,v 1.19 1998/08/28 00:35:51 hubertf Exp $ */
/* $NetBSD: perform.c,v 1.20 1998/09/08 21:54:01 tron Exp $ */
#include <sys/cdefs.h>
#ifndef lint
#if 0
static const char *rcsid = "from FreeBSD Id: perform.c,v 1.44 1997/10/13 15:03:46 jkh Exp";
#else
__RCSID("$NetBSD: perform.c,v 1.19 1998/08/28 00:35:51 hubertf Exp $");
__RCSID("$NetBSD: perform.c,v 1.20 1998/09/08 21:54:01 tron Exp $");
#endif
#endif
@ -277,11 +277,12 @@ pkg_do(char *pkg)
++code;
}
}
else
warnx("add of dependency `%s' failed%s",
p->name, Force ? " (proceeding anyway)" : "!");
if (!Force)
++code;
else {
warnx("add of dependency `%s' failed%s",
p->name, Force ? " (proceeding anyway)" : "!");
if (!Force)
++code;
}
}
else if ((cp = fileGetURL(pkg, p->name)) != NULL) {
if (Verbose)