From c97b05500e6b37b036e8266c30df995a9ff0b3aa Mon Sep 17 00:00:00 2001 From: pedro Date: Mon, 25 Oct 2021 22:35:50 +0200 Subject: [PATCH] __package_dpkg: add an example using dpkg-deb --- cdist/conf/type/__package_dpkg/man.rst | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/cdist/conf/type/__package_dpkg/man.rst b/cdist/conf/type/__package_dpkg/man.rst index 828d8cdd..a96a0f73 100644 --- a/cdist/conf/type/__package_dpkg/man.rst +++ b/cdist/conf/type/__package_dpkg/man.rst @@ -71,6 +71,11 @@ EXAMPLES --source $__type/files/baz_1.4_amd64.deb \ --purge-if-absent \ --state "absent" + # if dpkg-deb is available and your local package does not have (or can't have) the Debian naming conventions, you can do it this way: + __package_dpkg "$(dpkg-deb --show --showformat='${binary:Package}_${Version}_${Architecture}.deb\n' "baz.deb")" \ + --source $__type/files/baz.deb \ + --state "absent" + SEE ALSO