mirror of
https://git.yoctoproject.org/poky
synced 2026-05-09 05:29:32 +00:00
lib/oe/reproducible: Use git log without gpg signature
Previously, if "showSignature" is present in user gitconfig, parsing of the timestamp will fail. Ideally we should replace this command with a git plumbing command. (From OE-Core rev: 3bd6f78f79b3d3e87d8db1e11f58d8021f929843) Signed-off-by: Benoît Mauduit <bmauduit@beneth.fr> Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
committed by
Richard Purdie
parent
486791b3ac
commit
4c8d17088f
@@ -115,7 +115,8 @@ def get_source_date_epoch_from_git(d, sourcedir):
|
|||||||
return None
|
return None
|
||||||
|
|
||||||
bb.debug(1, "git repository: %s" % gitpath)
|
bb.debug(1, "git repository: %s" % gitpath)
|
||||||
p = subprocess.run(['git', '--git-dir', gitpath, 'log', '-1', '--pretty=%ct'], check=True, stdout=subprocess.PIPE)
|
p = subprocess.run(['git', '-c', 'log.showSignature=false', '--git-dir', gitpath, 'log', '-1', '--pretty=%ct'],
|
||||||
|
check=True, stdout=subprocess.PIPE)
|
||||||
return int(p.stdout.decode('utf-8'))
|
return int(p.stdout.decode('utf-8'))
|
||||||
|
|
||||||
def get_source_date_epoch_from_youngest_file(d, sourcedir):
|
def get_source_date_epoch_from_youngest_file(d, sourcedir):
|
||||||
|
|||||||
Reference in New Issue
Block a user