Add sudo to generation of rm-rf when cleanning the build tree
because some files may be ownded by root (python2 e.g.)
This commit is contained in:
parent
d7818f5134
commit
5e9076f11d
1 changed files with 5 additions and 0 deletions
|
@ -78,6 +78,11 @@
|
|||
That is no more true
|
||||
<xsl:if test="not(@id='mesalib')"> -->
|
||||
<xsl:text>cd $SRC_DIR/$PKG_DIR
</xsl:text>
|
||||
<!-- In some case, some files in the build tree are owned
|
||||
by root -->
|
||||
<xsl:if test="$sudo='y'">
|
||||
<xsl:text>sudo </xsl:text>
|
||||
</xsl:if>
|
||||
<xsl:text>rm -rf $UNPACKDIR unpacked

</xsl:text>
|
||||
<!-- Same reason as preceding comment
|
||||
</xsl:if>
|
||||
|
|
Reference in a new issue