Recognise @option directives instead of falling through to the default

"unknown command" clause.

PR:	29262
This commit is contained in:
Kris Kennaway 2001-08-06 20:09:26 +00:00
parent d047ecf50b
commit 1e1bbe0f97

View File

@ -163,6 +163,12 @@ show_plist(char *title, Package *plist, plist_t type)
printf(Quiet ? "@dirrm %s\n" : "\tDeinstall directory remove: %s\n", p->name);
break;
case PLIST_OPTION:
printf(Quiet ? "@option %s\n" :
"\tOption \"%s\" controlling package installation behaviour\n",
p->name);
break;
default:
cleanup(0);
errx(2, __FUNCTION__ ": unknown command type %d (%s)", p->type, p->name);