summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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