Merge branch 'patch-1' into 'master'

__package_dpkg: add an example using dpkg-deb

See merge request ungleich-public/cdist!1026
This commit is contained in:
pedro 2021-11-03 16:57:26 +01:00
commit 17862964fb
1 changed files with 5 additions and 0 deletions

View File

@ -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