## common/lib/puppet/parser/functions/debversion.rb
module Puppet::Parser::Functions
newfunction(:debversion, :type => :rvalue) do |args|
%x{/usr/bin/dpkg-query -W -f='${Version}' #{args[0]}}
end
end