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.
This commit is contained in:
parent
2dd19923f7
commit
f079f8f2a8
1 changed files with 5 additions and 5 deletions
|
@ -398,17 +398,17 @@ if [[ ! -f $BOOTPACKG ]] ; then
|
|||
fi
|
||||
|
||||
if [[ -e unpacked ]] ; then
|
||||
UNPACKDIR=`head -n1 unpacked | sed 's@^./@@;s@/.*@@'`
|
||||
if ! [[ -d $UNPACKDIR ]]; then
|
||||
BOOTUNPACKDIR=`head -n1 unpacked | sed 's@^./@@;s@/.*@@'`
|
||||
if ! [[ -d $BOOTUNPACKDIR ]]; then
|
||||
rm unpacked
|
||||
tar -xvf $BOOTPACKG > unpacked
|
||||
UNPACKDIR=`head -n1 unpacked | sed 's@^./@@;s@/.*@@'`
|
||||
BOOTUNPACKDIR=`head -n1 unpacked | sed 's@^./@@;s@/.*@@'`
|
||||
fi
|
||||
else
|
||||
tar -xvf $BOOTPACKG > unpacked
|
||||
UNPACKDIR=`head -n1 unpacked | sed 's@^./@@;s@/.*@@'`
|
||||
BOOTUNPACKDIR=`head -n1 unpacked | sed 's@^./@@;s@/.*@@'`
|
||||
fi
|
||||
cd $UNPACKDIR
|
||||
cd $BOOTUNPACKDIR
|
||||
</xsl:text>
|
||||
</xsl:if>
|
||||
<xsl:apply-templates select='.'/>
|
||||
|
|
Reference in a new issue