summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--files/core-functions.sh19
1 files changed, 8 insertions, 11 deletions
diff --git a/files/core-functions.sh b/files/core-functions.sh
index 1f4faf3..0eedef9 100644
--- a/files/core-functions.sh
+++ b/files/core-functions.sh
@@ -1180,17 +1180,13 @@ Please check your mirror and try again."
#
echo -e "\tFormatting lists to slackpkg style..."
echo -e "\t\tPackage List: using $( basename $FILELIST ) as source"
- grep "\.t[blxg]z$" $FILELIST| \
- awk -f /usr/libexec/slackpkg/pkglist.awk |\
- sed -e 's/^M//g' > ${TMPDIR}/pkglist
- cp ${TMPDIR}/pkglist ${WORKDIR}/pkglist
+ grep "\.t[blxg]z$" $FILELIST |
+ awk -f /usr/libexec/slackpkg/pkglist.awk |
+ sed -e 's/^M//g' | tee ${WORKDIR}/pkglist > ${TMPDIR}/pkglist
# Create the slackware tree under TEMP directory
- for i in $( cut -f7 -d\ ${WORKDIR}/pkglist | sort -u ) ; do
- if ! [ -d ${ROOT}/${TEMP}/${i} ]; then
- mkdir -p ${ROOT}/${TEMP}/${i}
- fi
- done
+ mkdir -p $( printf "${ROOT}/${TEMP}/%s " $(
+ cut -f7 -d\ ${WORKDIR}/pkglist | sort -u ) )
# Format MANIFEST
#
@@ -1199,8 +1195,9 @@ Please check your mirror and try again."
#
MANFILES=""
for i in $DIRS; do
- bunzip2 -c $TMPDIR/${i}-MANIFEST.bz2 | awk -f /usr/libexec/slackpkg/filelist.awk | \
- gzip > ${TMPDIR}/${i}-filelist.gz
+ bunzip2 -c $TMPDIR/${i}-MANIFEST.bz2 |
+ awk -f /usr/libexec/slackpkg/filelist.awk |
+ gzip --fast > ${TMPDIR}/${i}-filelist.gz
done
cp ${TMPDIR}/*-filelist.gz ${WORKDIR}/