]> code.ossystems Code Review - openembedded-core.git/commitdiff
reproducible: Don't enforce existence of ${S} dir
authorDouglas Royds <douglas.royds@taitradio.com>
Fri, 14 Sep 2018 02:58:16 +0000 (14:58 +1200)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Fri, 21 Sep 2018 15:15:19 +0000 (08:15 -0700)
Unnecessary.

Signed-off-by: Douglas Royds <douglas.royds@taitradio.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
meta/classes/reproducible_build.bbclass

index 42cb37b042c3de8ab5f1f536b82d95d65ae50350..a81f249790ef4ea470ce5d28222383b4bfb86e1b 100644 (file)
@@ -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