cfengine/masterfiles — pull request #2 by nperron (2013-08-27 15:36:45+00:00)
Title: Redmine #3280 - Permit CFEngine to compare the package name installed and the package name promised on Debian Wheezy

This is a proposal related to https://cfengine.com/dev/issues/3280.

Following previous discussion with @tzz from https://github.com/cfengine/copbl/pull/30 and https://github.com/cfengine/core/pull/904 , here is a new Pull Request on the good repository for CFEngine Standard Library.

This Pull Request will permit to compare on Debian Wheezy the name of the package installed and the name of the package promised. Since Wheezy, Debian is multiarch and the actual comparison does not work since the name contains ```:amd64```, ```:i586```,etc...

To fix that issue we have to add into the regexp for the name of the package to not match what contains ```:```. By its simplicity this modification is compatible with previous Debian version.

Hope it will feet your recommendations.