summaryrefslogtreecommitdiffstats
path: root/usr.sbin
diff options
context:
space:
mode:
authorkris <kris@FreeBSD.org>2002-08-31 20:21:47 +0000
committerkris <kris@FreeBSD.org>2002-08-31 20:21:47 +0000
commited521becb9f136ee250b6a0301bc5921b3102913 (patch)
treece8c85718cd360662ad5cd38ccdc213124c52ddc /usr.sbin
parentf2f47abcd434d31f3fe45e86e3ece87effa5fa5d (diff)
downloadFreeBSD-src-ed521becb9f136ee250b6a0301bc5921b3102913.zip
FreeBSD-src-ed521becb9f136ee250b6a0301bc5921b3102913.tar.gz
Don't treat unknown commands as fatal errors: they are probably just
the signature of out-of-date pkg_tools and newer packages. Reviewed by: jkh MFC after: 3 days
Diffstat (limited to 'usr.sbin')
-rw-r--r--usr.sbin/pkg_install/lib/plist.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/usr.sbin/pkg_install/lib/plist.c b/usr.sbin/pkg_install/lib/plist.c
index 455bb9c..4a640c4 100644
--- a/usr.sbin/pkg_install/lib/plist.c
+++ b/usr.sbin/pkg_install/lib/plist.c
@@ -275,8 +275,9 @@ read_plist(Package *pkg, FILE *fp)
}
cmd = plist_cmd(pline + 1, &cp);
if (cmd == FAIL) {
- cleanup(0);
- errx(2, "%s: bad command '%s'", __func__, pline);
+ warnx("%s: unknown command '%s' (package tools out of date?)",
+ __func__, pline);
+ goto bottom;
}
if (*cp == '\0') {
cp = NULL;
OpenPOWER on IntegriCloud