Changeset f079f8f for BLFS


Ignore:
Timestamp:
09/24/2014 10:10:53 AM (10 years ago)
Author:
Pierre Labastie <pierre@…>
Branches:
2.4, ablfs-more, legacy, new_features, trunk
Children:
a743e57
Parents:
2dd1992
Message:

When a package installs bootscripts, the UNPACKDIR variable is used for
unpacking the booscripts. Then, when we want to remove the build directory
of the package, the UNPACKDIR is set to something else and the build
directory is not removed.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • BLFS/xsl/scripts.xsl

    r2dd1992 rf079f8f  
    399399
    400400if [[ -e unpacked ]] ; then
    401   UNPACKDIR=`head -n1 unpacked | sed 's@^./@@;s@/.*@@'`
    402   if ! [[ -d $UNPACKDIR ]]; then
     401  BOOTUNPACKDIR=`head -n1 unpacked | sed 's@^./@@;s@/.*@@'`
     402  if ! [[ -d $BOOTUNPACKDIR ]]; then
    403403    rm unpacked
    404404    tar -xvf $BOOTPACKG > unpacked
    405     UNPACKDIR=`head -n1 unpacked | sed 's@^./@@;s@/.*@@'`
     405    BOOTUNPACKDIR=`head -n1 unpacked | sed 's@^./@@;s@/.*@@'`
    406406  fi
    407407else
    408408  tar -xvf $BOOTPACKG > unpacked
    409   UNPACKDIR=`head -n1 unpacked | sed 's@^./@@;s@/.*@@'`
     409  BOOTUNPACKDIR=`head -n1 unpacked | sed 's@^./@@;s@/.*@@'`
    410410fi
    411 cd $UNPACKDIR
     411cd $BOOTUNPACKDIR
    412412</xsl:text>
    413413    </xsl:if>
Note: See TracChangeset for help on using the changeset viewer.