summaryrefslogtreecommitdiffstats
path: root/xz.pkg
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 /xz.pkg
parente90e725b6d32f1b67c29d2619996311fc17569f5 (diff)
xz: Manage /usr/bin/xz with update-alternatives.
Diffstat (limited to 'xz.pkg')
-rw-r--r--xz.pkg/postinst2
-rw-r--r--xz.pkg/prerm2
2 files changed, 2 insertions, 2 deletions
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