From 7f9fa090a853bb39a5c2cdf20731aadb74437c32 Mon Sep 17 00:00:00 2001 From: P. J. McDermott Date: Thu, 08 May 2014 15:23:32 -0400 Subject: xz: Manage /usr/bin/xz with update-alternatives. --- diff --git a/changelog b/changelog index 56da17a..c185448 100644 --- a/changelog +++ b/changelog @@ -1,3 +1,9 @@ +xz (5.1.3alpha-2) trunk + + * Manage /usr/bin/xz with update-alternatives. + + -- "P. J. McDermott" Thu, 08 May 2014 15:22:12 -0400 + xz (5.1.3alpha-1) trunk * Initial release. diff --git a/xz.pkg/postinst b/xz.pkg/postinst index 5898f60..daf0a1c 100644 --- a/xz.pkg/postinst +++ b/xz.pkg/postinst @@ -1,7 +1,7 @@ #!/bin/sh if [ "x${1}" = 'xconfigure' ]; then - for link in unxz xzcat lzma unlzma lzcat; do + for link in xz unxz xzcat lzma unlzma lzcat; do update-alternatives --install /usr/bin/${link} ${link} \ /usr/bin/${link}.tuk 20 done diff --git a/xz.pkg/prerm b/xz.pkg/prerm index 3008321..706c603 100644 --- a/xz.pkg/prerm +++ b/xz.pkg/prerm @@ -1,7 +1,7 @@ #!/bin/sh if [ "x${1}" = 'xremove' ]; then - for link in unxz xzcat lzma unlzma lzcat; do + for link in xz unxz xzcat lzma unlzma lzcat; do update-alternatives --remove ${link} /usr/bin/${link}.tuk done fi -- cgit v0.9.1