Check for installonlypkgs - special handling

Patch for http://projects.puppetlabs.com/issues/1720