summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--changelog6
-rw-r--r--xz.pkg/postinst2
-rw-r--r--xz.pkg/prerm2
3 files changed, 8 insertions, 2 deletions
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" <pj@pehjota.net> 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