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:
Pierre Labastie 2012-02-25 09:51:13 +00:00
parent d7818f5134
commit 5e9076f11d

View file

@ -78,6 +78,11 @@
That is no more true
<xsl:if test="not(@id='mesalib')"> -->
<xsl:text>cd $SRC_DIR/$PKG_DIR&#xA;</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&#xA;&#xA;</xsl:text>
<!-- Same reason as preceding comment
</xsl:if>