From: Douglas Royds Date: Fri, 14 Sep 2018 02:58:16 +0000 (+1200) Subject: reproducible: Don't enforce existence of ${S} dir X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=d6f2ffb5c766d3295863f3a5d9ae47c1b7b14067;p=thirdparty%2Fopenembedded%2Fopenembedded-core-contrib.git reproducible: Don't enforce existence of ${S} dir Unnecessary. (From OE-Core rev: 75d5a9d72566aca7a9f08bea21523b3c66bddeae) Signed-off-by: Douglas Royds Signed-off-by: Ross Burton Signed-off-by: Richard Purdie --- diff --git a/meta/classes/reproducible_build.bbclass b/meta/classes/reproducible_build.bbclass index 42cb37b042c..a81f249790e 100644 --- a/meta/classes/reproducible_build.bbclass +++ b/meta/classes/reproducible_build.bbclass @@ -122,16 +122,12 @@ def get_source_date_epoch_from_youngest_file(d, sourcedir): return source_date_epoch python do_create_source_date_epoch_stamp() { - sourcedir = d.getVar('S') - if not os.path.isdir(sourcedir): - bb.warn("Unable to determine source_date_epoch! path:%s" % sourcedir) - return - epochfile = d.getVar('SDE_FILE') if os.path.isfile(epochfile): bb.debug(1, " path: %s reusing __source_date_epoch.txt" % epochfile) return + sourcedir = d.getVar('S') source_date_epoch = ( get_source_date_epoch_from_git(d, sourcedir) or get_source_date_epoch_from_known_files(d, sourcedir) or