From ed521becb9f136ee250b6a0301bc5921b3102913 Mon Sep 17 00:00:00 2001 From: kris Date: Sat, 31 Aug 2002 20:21:47 +0000 Subject: 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 --- usr.sbin/pkg_install/lib/plist.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'usr.sbin/pkg_install') 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; -- cgit v1.1