This is an automated email from the git hooks/post-receive script.

guillem pushed a commit to branch main
in repository dpkg.

View the commit online:
https://git.dpkg.org/cgit/dpkg/dpkg.git/commit/?id=c50cc48900ff616af9df8b4ca3efc9a211e1eb9b

commit c50cc48900ff616af9df8b4ca3efc9a211e1eb9b
Author: Guillem Jover <[email protected]>
AuthorDate: Wed Apr 12 23:59:17 2023 +0200

    test: Define lzma based on xz if missing
    
    Some systems might have xz, but not lzma, and if so we can define the
    latter by using the former.
---
 src/at/atlocal.in | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/src/at/atlocal.in b/src/at/atlocal.in
index a7adc9511..7ae80d0b0 100644
--- a/src/at/atlocal.in
+++ b/src/at/atlocal.in
@@ -7,6 +7,12 @@ SED=@SED@
 TAR=@TAR@
 PERL=@PERL@
 
+if ! command -v lzma >/dev/null && command -v xz >/dev/null; then
+  lzma() {
+    xz --format=lzma "$@"
+  }
+fi
+
 # Setup a sane environment
 
 umask 0022

-- 
Dpkg.Org's dpkg

Reply via email to