summaryrefslogtreecommitdiffstats
path: root/slackware64-current/source/a/pkgtools/scripts/installpkg
diff options
context:
space:
mode:
Diffstat (limited to 'slackware64-current/source/a/pkgtools/scripts/installpkg')
-rw-r--r--slackware64-current/source/a/pkgtools/scripts/installpkg12
1 files changed, 10 insertions, 2 deletions
diff --git a/slackware64-current/source/a/pkgtools/scripts/installpkg b/slackware64-current/source/a/pkgtools/scripts/installpkg
index 4333e9fa1..782d5310b 100644
--- a/slackware64-current/source/a/pkgtools/scripts/installpkg
+++ b/slackware64-current/source/a/pkgtools/scripts/installpkg
@@ -233,7 +233,11 @@ if [ "$MODE" = "warn" ]; then
packagecompression=gzip
;;
'tbz' )
- packagecompression=bzip2
+ if which lbzip2 1> /dev/null 2> /dev/null ; then
+ packagecompression=lbzip2
+ else
+ packagecompression=bzip2
+ fi
;;
'tlz' )
if which plzip 1> /dev/null 2> /dev/null ; then
@@ -317,7 +321,11 @@ for package in $* ; do
packagecompression=gzip
;;
'tbz' )
- packagecompression=bzip2
+ if which lbzip2 1> /dev/null 2> /dev/null ; then
+ packagecompression=lbzip2
+ else
+ packagecompression=bzip2
+ fi
;;
'tlz' )
if which plzip 1> /dev/null 2> /dev/null ; then