summaryrefslogtreecommitdiffstats
path: root/scripts
diff options
context:
space:
mode:
authorDaniel McGregor <daniel.mcgregor@vecima.com>2020-06-15 16:01:43 -0600
committerRichard Purdie <richard.purdie@linuxfoundation.org>2020-06-17 11:10:28 +0100
commita21efde0c77633a72f8465a219439e45a5ac9dda (patch)
treefb399bb4114c942c2cc9ca42a255e69150471e9c /scripts
parentfbd5b12001ddfd3f31d000b984ec2a0eb5b7481c (diff)
downloadpoky-a21efde0c77633a72f8465a219439e45a5ac9dda.tar.gz
buildhistory-collect-srcrevs: sort directories
In order to allow consistent output of buildhistory-collect-srcrevs sort the list of directories returned by os.walk. Otherwise the list of SRCREVs is returned in an unspecified order. We save the output of this command on build, so it creates smaller diffs between builds. (From OE-Core rev: 3d7cb207ad4ec3cd5a3064147d3c9b5a1730d0fb) Signed-off-by: Daniel McGregor <daniel.mcgregor@vecima.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/buildhistory-collect-srcrevs1
1 files changed, 1 insertions, 0 deletions
diff --git a/scripts/buildhistory-collect-srcrevs b/scripts/buildhistory-collect-srcrevs
index c4d203ff4d..340bee78bb 100755
--- a/scripts/buildhistory-collect-srcrevs
+++ b/scripts/buildhistory-collect-srcrevs
@@ -59,6 +59,7 @@ def main():
59 59
60 all_srcrevs = collections.defaultdict(list) 60 all_srcrevs = collections.defaultdict(list)
61 for root, dirs, files in os.walk(options.buildhistory_dir): 61 for root, dirs, files in os.walk(options.buildhistory_dir):
62 dirs.sort()
62 if '.git' in dirs: 63 if '.git' in dirs:
63 dirs.remove('.git') 64 dirs.remove('.git')
64 for fn in files: 65 for fn in files: