summaryrefslogtreecommitdiffstats
path: root/usr.sbin/pkg_install/add
diff options
context:
space:
mode:
authorjkh <jkh@FreeBSD.org>1998-09-08 03:02:45 +0000
committerjkh <jkh@FreeBSD.org>1998-09-08 03:02:45 +0000
commit8355921f3182d696d2091315ec085b5568a657d4 (patch)
tree1f20bae9a7a82b2401df99083959d5c64b6c05b9 /usr.sbin/pkg_install/add
parente5227524a6e8f304873101160f383cc9945c7414 (diff)
downloadFreeBSD-src-8355921f3182d696d2091315ec085b5568a657d4.zip
FreeBSD-src-8355921f3182d696d2091315ec085b5568a657d4.tar.gz
Fail as documented when a dependency cannot be found
PR: 7318 Submitted by: djv@bedford.net
Diffstat (limited to 'usr.sbin/pkg_install/add')
-rw-r--r--usr.sbin/pkg_install/add/perform.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/usr.sbin/pkg_install/add/perform.c b/usr.sbin/pkg_install/add/perform.c
index 2d80f85..3345efb 100644
--- a/usr.sbin/pkg_install/add/perform.c
+++ b/usr.sbin/pkg_install/add/perform.c
@@ -1,6 +1,6 @@
#ifndef lint
static const char rcsid[] =
- "$Id: perform.c,v 1.50 1998/07/17 14:56:31 eivind Exp $";
+ "$Id: perform.c,v 1.51 1998/08/27 14:59:55 jkh Exp $";
#endif
/*
@@ -258,6 +258,12 @@ pkg_do(char *pkg)
++code;
}
}
+ else {
+ warnx("could not find package %s %s",
+ p->name, Force ? " (proceeding anyway)" : "!");
+ if (!Force)
+ ++code;
+ }
}
else if ((cp = fileGetURL(pkg, p->name)) != NULL) {
if (Verbose)
OpenPOWER on IntegriCloud