opscode/ec-metal — pull request #118 by irvingpop (2014-11-14 17:13:58+00:00)
Title: Attempt to detect chef-server-core along with private-chef

Would appreciate feedback on more Ruby-Idiomatic ways to do this, but:

1. `pkg_provider.load_current_resource` raises an `Chef::Exceptions::Package` if `chef-server-core` is installed and you query for `private-chef` -- I think this is because of [1] below. So rescue on that and return `0.0.0` which is the equivalent of uninstalled

2. Modify the `private_chef_installed_version` method to fall back to `chef-server-core` if `private-chef` isn't installed.

[1]
```
root@backend1:~# apt-cache showpkg chef-server-core
Package: chef-server-core
Versions:
12.0.0-rc.6-1 (/var/lib/dpkg/status)
Description Language:
File: /var/lib/dpkg/status
MD5: a5a909d9290df04b6b8e337089019c28

Reverse Depends:
Dependencies:
12.0.0-rc.6-1 - private-chef (0 (null)) private-chef:i386 (0 (null)) private-chef (0 (null)) private-chef:i386 (0 (null))
Provides:
12.0.0-rc.6-1 -
Reverse Provides:
```