Harmonizing update-alternatives handling across all lzip-alternative providing packages.
Signed-off-by: Daniel Baumann <daniel@debian.org>
This commit is contained in:
parent
18c5cfb395
commit
283b2474b2
3 changed files with 4 additions and 4 deletions
2
debian/lzd.postinst
vendored
2
debian/lzd.postinst
vendored
|
@ -5,7 +5,7 @@ set -e
|
||||||
case "${1}" in
|
case "${1}" in
|
||||||
configure)
|
configure)
|
||||||
update-alternatives --quiet \
|
update-alternatives --quiet \
|
||||||
--install /usr/bin/lzip lzip /usr/bin/lzip.educational-decompressor 1
|
--install /usr/bin/lzip lzip /usr/bin/lzip.lzd 1
|
||||||
;;
|
;;
|
||||||
|
|
||||||
abort-upgrade|abort-remove|abort-deconfigure)
|
abort-upgrade|abort-remove|abort-deconfigure)
|
||||||
|
|
2
debian/lzd.prerm
vendored
2
debian/lzd.prerm
vendored
|
@ -4,7 +4,7 @@ set -e
|
||||||
|
|
||||||
case "${1}" in
|
case "${1}" in
|
||||||
remove|upgrade|deconfigure)
|
remove|upgrade|deconfigure)
|
||||||
update-alternatives --quiet --remove lzip /usr/bin/lzip.educational-decompressor
|
update-alternatives --quiet --remove lzip /usr/bin/lzip.lzd
|
||||||
;;
|
;;
|
||||||
|
|
||||||
failed-upgrade)
|
failed-upgrade)
|
||||||
|
|
4
debian/rules
vendored
4
debian/rules
vendored
|
@ -7,9 +7,9 @@ override_dh_auto_install:
|
||||||
dh_auto_install -- DESTDIR=$(CURDIR)/debian/lzd
|
dh_auto_install -- DESTDIR=$(CURDIR)/debian/lzd
|
||||||
|
|
||||||
# alternative handling
|
# alternative handling
|
||||||
mv debian/lzd/usr/bin/lzd debian/lzd/usr/bin/lzip.educational-decompressor
|
mv debian/lzd/usr/bin/lzd debian/lzd/usr/bin/lzip.lzd
|
||||||
|
|
||||||
ln -s /usr/bin/lzip.educational-decompressor debian/lzd/usr/bin/lzd
|
ln -s /usr/bin/lzip.lzd debian/lzd/usr/bin/lzd
|
||||||
|
|
||||||
override_dh_builddeb:
|
override_dh_builddeb:
|
||||||
dh_builddeb -- -Zxz
|
dh_builddeb -- -Zxz
|
||||||
|
|
Loading…
Add table
Reference in a new issue