summaryrefslogtreecommitdiffstats
path: root/meta/classes
diff options
context:
space:
mode:
Diffstat (limited to 'meta/classes')
-rw-r--r--meta/classes/reproducible_build.bbclass6
1 files changed, 1 insertions, 5 deletions
diff --git a/meta/classes/reproducible_build.bbclass b/meta/classes/reproducible_build.bbclass
index 42cb37b042..a81f249790 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):
122 return source_date_epoch 122 return source_date_epoch
123 123
124python do_create_source_date_epoch_stamp() { 124python do_create_source_date_epoch_stamp() {
125 sourcedir = d.getVar('S')
126 if not os.path.isdir(sourcedir):
127 bb.warn("Unable to determine source_date_epoch! path:%s" % sourcedir)
128 return
129
130 epochfile = d.getVar('SDE_FILE') 125 epochfile = d.getVar('SDE_FILE')
131 if os.path.isfile(epochfile): 126 if os.path.isfile(epochfile):
132 bb.debug(1, " path: %s reusing __source_date_epoch.txt" % epochfile) 127 bb.debug(1, " path: %s reusing __source_date_epoch.txt" % epochfile)
133 return 128 return
134 129
130 sourcedir = d.getVar('S')
135 source_date_epoch = ( 131 source_date_epoch = (
136 get_source_date_epoch_from_git(d, sourcedir) or 132 get_source_date_epoch_from_git(d, sourcedir) or
137 get_source_date_epoch_from_known_files(d, sourcedir) or 133 get_source_date_epoch_from_known_files(d, sourcedir) or