bsdperimeter/pfsense — pull request #466 by stilez (2013-03-06 19:17:37+00:00)
Title: Fix issue in version_compare that can cause versions to be wrongly marked incompatible

In 2.0.1 an Unbound update marked as compatible with "2.0.1" was deemed incompatible with "2.0.1-RELEASE" pfsense.

This change improves version matching and fixes the issue more correctly, by

1. allowing an optional explicit * (2.1-*) to match any release level;
2. in the absence of compatibility only to a specific release level, work on the basis the most likely intention is for the package to be compatible with all release levels. (Cannot mind read so if no release level is given we pretty much have to assume this)