X-Git-Url: http://gitweb.hugovil.com/?a=blobdiff_plain;ds=sidebyside;f=functions%2Fmain;h=d677cc7b4c5492ce38c8078e19482b07182de87c;hb=6be74141099e569e059115b9659f1a8c98306ac7;hp=c3c0e5d4fa68bc06dc8fa765eb55c5a04c8f4c69;hpb=f3c8db3027d5dc530e1f30c88e0235975211582e;p=hvlinux.git diff --git a/functions/main b/functions/main index c3c0e5d..d677cc7 100644 --- a/functions/main +++ b/functions/main @@ -639,7 +639,9 @@ static_decompressed_dirname() # and extract base directory name with awk. # tar 1.23 reports an error when using pipes, so # remove error message with "2> /dev/null" - local DIRNAME=$(tar ${TAR_OPTS} -tf ${LFS_PKG_DIR}/${PACKAGE}.tar.bz2 2> /dev/null | head -n1 | sed 's!^\./!!' | awk -F \/ '{print $1}') + local DIRNAME=$(tar ${TAR_OPTS} -tf \ + ${LFS_PKG_DIR}/${PACKAGE}.${arch_ext} 2> /dev/null | \ + head -n1 | sed 's!^\./!!' | awk -F \/ '{print $1}') echo ${DIRNAME} ;; zip)