Fix package conflict for flavors:
authorespie <espie@openbsd.org>
Sun, 16 Apr 2000 22:02:26 +0000 (22:02 +0000)
committerespie <espie@openbsd.org>
Sun, 16 Apr 2000 22:02:26 +0000 (22:02 +0000)
commitf0e569bb86952ac3468f6f9690e9cbc70c40ff36
tree35bf629602578c9a9ac390ce13994b533fe4e546
parent0bdc279a984df66f4688645ac8ad320cbd1b6165
Fix package conflict for flavors:
try to find the last dash followed by a digit in word.
If not applicable, then still use the last dash.

e.g., kterm-6.2.0-xaw3d -> kterm-   as a stem, not kterm-6.2.0
usr.sbin/pkg_install/add/perform.c