2. package version parsing is just plain wrong.
a version is detected by prefix and - so any package name with a
dash in it similiar to another will fail to
install. ie, protobuf and protobuf-c
Well obviously c-0.14 is not a version for protbuf. The regular
expression is greedy when it should not be.
Chef does this to determine candidate version:
And does this to determine current version:
It does not bother to parse the package properly and get the
package_name and assert it
matches before returning the version.
Something like this has worked for me: