mirror of
https://github.com/sbopkg/sbopkg
synced 2024-12-28 09:58:58 +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
|
||||
multiple renames files. Thanks to Robby Workman for the suggestion. Add
|
||||
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
|
||||
slack-desc )
|
||||
sed -n "/^${DIR##*/}: */s///p" slack-desc > $AFSP ;;
|
||||
*tar.gz | *tar.bz2 | *tgz )
|
||||
*tar.gz | *tar.bz2 | *t?z )
|
||||
tar tvf $FILE > $AFSP ;;
|
||||
*gz ) zcat $FILE > $AFSP ;;
|
||||
*bz2 ) bzcat $FILE > $AFSP ;;
|
||||
|
@ -897,7 +897,7 @@ info_item() {
|
|||
done
|
||||
if $(echo $(ls -1 $OUTPUT) | grep -E -q "$APP.*$CURVERSION"); then
|
||||
CURPACKAGE="$(
|
||||
basename $(ls -1 $OUTPUT/${APP}*${CURVERSION}*${CURBUILD}*tgz|
|
||||
basename $(ls -1 $OUTPUT/${APP}*${CURVERSION}*${CURBUILD}*t?z|
|
||||
head -n 1)
|
||||
)"
|
||||
else
|
||||
|
@ -2394,7 +2394,7 @@ build_package() {
|
|||
|
||||
# Let's see the result
|
||||
cd $SB_OUTPUT
|
||||
if [ ! -f *.tgz ]; then
|
||||
if [ ! -f *.t?z ]; then
|
||||
echo "$PKGNAME:" >> $SUMMARYLOG
|
||||
echo "Error occurred with build. Please check the log." \
|
||||
>> $SUMMARYLOG
|
||||
|
@ -2425,7 +2425,7 @@ build_package() {
|
|||
fi
|
||||
else
|
||||
echo "Done building package for $PKG."
|
||||
NEWPACKAGE=$(ls -1 *.tgz)
|
||||
NEWPACKAGE=$(ls -1 *.t?z)
|
||||
echo "$PKGNAME:" >> $SUMMARYLOG
|
||||
echo "Built package: $NEWPACKAGE" >> $SUMMARYLOG
|
||||
echo "Built package: $NEWPACKAGE"
|
||||
|
|
Loading…
Reference in a new issue