mirror of
https://github.com/sbopkg/sbopkg
synced 2024-12-31 10:23:25 +01:00
add support for new *.txz, *.tbz, and *.tlz Slackware package extensions.
This commit is contained in:
parent
99b16afbeb
commit
516c681183
2 changed files with 5 additions and 4 deletions
|
@ -48,4 +48,5 @@ enhancements:
|
||||||
* Move sbopkg-renames to new /etc/sbopkg/renames.d/50-default to manage
|
* Move sbopkg-renames to new /etc/sbopkg/renames.d/50-default to manage
|
||||||
multiple renames files. Thanks to Robby Workman for the suggestion. Add
|
multiple renames files. Thanks to Robby Workman for the suggestion. Add
|
||||||
new document README-renames.d that explains how this works.
|
new document README-renames.d that explains how this works.
|
||||||
|
* Add support for new *.txz, *.tlz, and *.tbz Slackware package extensions.
|
||||||
+--------------------------+
|
+--------------------------+
|
||||||
|
|
|
@ -829,7 +829,7 @@ view_app_file() {
|
||||||
case $FILE in
|
case $FILE in
|
||||||
slack-desc )
|
slack-desc )
|
||||||
sed -n "/^${DIR##*/}: */s///p" slack-desc > $AFSP ;;
|
sed -n "/^${DIR##*/}: */s///p" slack-desc > $AFSP ;;
|
||||||
*tar.gz | *tar.bz2 | *tgz )
|
*tar.gz | *tar.bz2 | *t?z )
|
||||||
tar tvf $FILE > $AFSP ;;
|
tar tvf $FILE > $AFSP ;;
|
||||||
*gz ) zcat $FILE > $AFSP ;;
|
*gz ) zcat $FILE > $AFSP ;;
|
||||||
*bz2 ) bzcat $FILE > $AFSP ;;
|
*bz2 ) bzcat $FILE > $AFSP ;;
|
||||||
|
@ -897,7 +897,7 @@ info_item() {
|
||||||
done
|
done
|
||||||
if $(echo $(ls -1 $OUTPUT) | grep -E -q "$APP.*$CURVERSION"); then
|
if $(echo $(ls -1 $OUTPUT) | grep -E -q "$APP.*$CURVERSION"); then
|
||||||
CURPACKAGE="$(
|
CURPACKAGE="$(
|
||||||
basename $(ls -1 $OUTPUT/${APP}*${CURVERSION}*${CURBUILD}*tgz|
|
basename $(ls -1 $OUTPUT/${APP}*${CURVERSION}*${CURBUILD}*t?z|
|
||||||
head -n 1)
|
head -n 1)
|
||||||
)"
|
)"
|
||||||
else
|
else
|
||||||
|
@ -2394,7 +2394,7 @@ build_package() {
|
||||||
|
|
||||||
# Let's see the result
|
# Let's see the result
|
||||||
cd $SB_OUTPUT
|
cd $SB_OUTPUT
|
||||||
if [ ! -f *.tgz ]; then
|
if [ ! -f *.t?z ]; then
|
||||||
echo "$PKGNAME:" >> $SUMMARYLOG
|
echo "$PKGNAME:" >> $SUMMARYLOG
|
||||||
echo "Error occurred with build. Please check the log." \
|
echo "Error occurred with build. Please check the log." \
|
||||||
>> $SUMMARYLOG
|
>> $SUMMARYLOG
|
||||||
|
@ -2425,7 +2425,7 @@ build_package() {
|
||||||
fi
|
fi
|
||||||
else
|
else
|
||||||
echo "Done building package for $PKG."
|
echo "Done building package for $PKG."
|
||||||
NEWPACKAGE=$(ls -1 *.tgz)
|
NEWPACKAGE=$(ls -1 *.t?z)
|
||||||
echo "$PKGNAME:" >> $SUMMARYLOG
|
echo "$PKGNAME:" >> $SUMMARYLOG
|
||||||
echo "Built package: $NEWPACKAGE" >> $SUMMARYLOG
|
echo "Built package: $NEWPACKAGE" >> $SUMMARYLOG
|
||||||
echo "Built package: $NEWPACKAGE"
|
echo "Built package: $NEWPACKAGE"
|
||||||
|
|
Loading…
Reference in a new issue