diff options
author | kris <kris@FreeBSD.org> | 2002-08-31 20:21:47 +0000 |
---|---|---|
committer | kris <kris@FreeBSD.org> | 2002-08-31 20:21:47 +0000 |
commit | ed521becb9f136ee250b6a0301bc5921b3102913 (patch) | |
tree | ce8c85718cd360662ad5cd38ccdc213124c52ddc /usr.sbin | |
parent | f2f47abcd434d31f3fe45e86e3ece87effa5fa5d (diff) | |
download | FreeBSD-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.c | 5 |
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; |