summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorP. J. McDermott <pj@pehjota.net>2014-05-08 15:23:32 (EDT)
committer P. J. McDermott <pj@pehjota.net>2014-05-08 15:23:32 (EDT)
commit7f9fa090a853bb39a5c2cdf20731aadb74437c32 (patch)
tree48b53faa27dd7a85a227ce21c128b11326a7d8cd
parente90e725b6d32f1b67c29d2619996311fc17569f5 (diff)
xz: Manage /usr/bin/xz with update-alternatives.
-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