recipetool/create: Fix to work with reproducible_builds

The extra diretory created by reproducibile_builds was confusing recipetool
and hence devtool. Ignore this directory to restore the correct behaviour and
allow it to work with the class.

(From OE-Core rev: 188ba30ef290efab6d5a9b95fba8e991b779ab33)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
Richard Purdie 2019-11-18 15:44:21 +00:00
parent 91fdad8c16
commit d05b78b245

View File

@ -496,7 +496,7 @@ def create_recipe(args):
logger.info('Fetch temp directory is %s' % ftmpdir)
dirlist = os.listdir(srctree)
filterout = ['git.indirectionsymlink']
filterout = ['git.indirectionsymlink', 'source-date-epoch']
dirlist = [x for x in dirlist if x not in filterout]
logger.debug('Directory listing (excluding filtered out):\n %s' % '\n '.join(dirlist))
if len(dirlist) == 1: