diff options
-rw-r--r-- | meta/classes/reproducible_build.bbclass | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/meta/classes/reproducible_build.bbclass b/meta/classes/reproducible_build.bbclass index 2df805330a..268b5fb8f1 100644 --- a/meta/classes/reproducible_build.bbclass +++ b/meta/classes/reproducible_build.bbclass | |||
@@ -56,7 +56,7 @@ def get_source_date_epoch_known_files(d, path): | |||
56 | for file in known_files: | 56 | for file in known_files: |
57 | filepath = os.path.join(path,file) | 57 | filepath = os.path.join(path,file) |
58 | if os.path.isfile(filepath): | 58 | if os.path.isfile(filepath): |
59 | mtime = int(os.path.getmtime(filepath)) | 59 | mtime = int(os.lstat(filepath).st_mtime) |
60 | # There may be more than one "known_file" present, if so, use the youngest one | 60 | # There may be more than one "known_file" present, if so, use the youngest one |
61 | if mtime > source_date_epoch: | 61 | if mtime > source_date_epoch: |
62 | source_date_epoch = mtime | 62 | source_date_epoch = mtime |
@@ -114,7 +114,7 @@ python do_create_source_date_epoch_stamp() { | |||
114 | for fname in files: | 114 | for fname in files: |
115 | filename = os.path.join(root, fname) | 115 | filename = os.path.join(root, fname) |
116 | try: | 116 | try: |
117 | mtime = int(os.path.getmtime(filename)) | 117 | mtime = int(os.lstat(filename).st_mtime) |
118 | except ValueError: | 118 | except ValueError: |
119 | mtime = 0 | 119 | mtime = 0 |
120 | if mtime > source_date_epoch: | 120 | if mtime > source_date_epoch: |