ody/ody-pkginventory — pull request #2 by jmtd (2013-04-25 14:59:50+00:00)
Title: Fix package names which are not valid puppet variables

RPM and Debian packages may contain characters which are not valid
as variable names in puppet. Catch and convert these into '_', which
is safe. Currently this is a one-way transformation: it would be nice
if it were reversible.

Additionally, on Debian-based systems that support multiarch, package
names may be suffixed with :archname. Strip that off.