diff options
Diffstat (limited to 'meta/lib/oe/sstatesig.py')
-rw-r--r-- | meta/lib/oe/sstatesig.py | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/meta/lib/oe/sstatesig.py b/meta/lib/oe/sstatesig.py index a46e5502ab..d818fce8f1 100644 --- a/meta/lib/oe/sstatesig.py +++ b/meta/lib/oe/sstatesig.py | |||
@@ -524,6 +524,7 @@ def OEOuthashBasic(path, sigfile, task, d): | |||
524 | if task == "package": | 524 | if task == "package": |
525 | include_timestamps = True | 525 | include_timestamps = True |
526 | include_root = False | 526 | include_root = False |
527 | source_date_epoch = float(d.getVar("SOURCE_DATE_EPOCH")) | ||
527 | hash_version = d.getVar('HASHEQUIV_HASH_VERSION') | 528 | hash_version = d.getVar('HASHEQUIV_HASH_VERSION') |
528 | extra_sigdata = d.getVar("HASHEQUIV_EXTRA_SIGDATA") | 529 | extra_sigdata = d.getVar("HASHEQUIV_EXTRA_SIGDATA") |
529 | 530 | ||
@@ -615,7 +616,11 @@ def OEOuthashBasic(path, sigfile, task, d): | |||
615 | raise Exception(msg).with_traceback(e.__traceback__) | 616 | raise Exception(msg).with_traceback(e.__traceback__) |
616 | 617 | ||
617 | if include_timestamps: | 618 | if include_timestamps: |
618 | update_hash(" %10d" % s.st_mtime) | 619 | # Need to clamp to SOURCE_DATE_EPOCH |
620 | if s.st_mtime > source_date_epoch: | ||
621 | update_hash(" %10d" % source_date_epoch) | ||
622 | else: | ||
623 | update_hash(" %10d" % s.st_mtime) | ||
619 | 624 | ||
620 | update_hash(" ") | 625 | update_hash(" ") |
621 | if stat.S_ISBLK(s.st_mode) or stat.S_ISCHR(s.st_mode): | 626 | if stat.S_ISBLK(s.st_mode) or stat.S_ISCHR(s.st_mode): |