From: Chris Larson Date: Wed, 26 Aug 2009 21:02:19 +0000 (-0700) Subject: srctree.bbclass: Don't automatically use git clean. X-Git-Tag: Release-2010-05/1~2599^2~1 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6a5e3eadec25bfe03fdeff44197ffec45726484e;p=openembedded.git srctree.bbclass: Don't automatically use git clean. This should be an opt-in feature. Signed-off-by: Chris Larson --- diff --git a/classes/srctree.bbclass b/classes/srctree.bbclass index 2a324cf1be..e2a4303472 100644 --- a/classes/srctree.bbclass +++ b/classes/srctree.bbclass @@ -126,16 +126,8 @@ def clean_make(d): pass python do_clean () { - from os.path import exists - from bb.build import FuncFailed - from bb.data import expand - clean_stamps(d) clean_workdir(d) - if exists(expand("${S}/.git", d)) and \ - exists(expand("${S}/.gitignore", d)): - clean_git(d) - else: - clean_builddir(d) - clean_make(d) + clean_builddir(d) + clean_make(d) }