bsdperimeter/pfsense — pull request #65 by phil-davis (2012-03-20 11:23:02+00:00)
Title: Bug #2301: Handle case when PBI package names are substrings of each other

When a PBI package has multiple parts that are substrings of each other (e.g. "squid" and "squid_radius_auth") then we can't just look for PBI package names that contain the base name (e.g. "squid"). That matches 2 packages and the code doesn't work. The base name is always followed by a dash, so look for the dash as well. e.g. Look for "squid-", which will match the full PBI package name for squid but will not match "squid_radius_auth".