summaryrefslogtreecommitdiffstats
path: root/scripts
diff options
context:
space:
mode:
authorDan McGregor <danismostlikely@gmail.com>2020-06-15 16:01:43 -0600
committerSteve Sakoman <steve@sakoman.com>2020-06-20 17:09:07 -1000
commit9ca9c0fa320caeb2a1e7a60161c4db66dc0f2030 (patch)
tree92dc1acd0ced7981fecd47bddfae5676d1e9cee4 /scripts
parent5aaf9d3a748cbad17a4a3e5d9715ac2f289b007d (diff)
downloadopenembedded-core-contrib-9ca9c0fa320caeb2a1e7a60161c4db66dc0f2030.tar.gz
buildhistory-collect-srcrevs: sort directories
From: Daniel McGregor <daniel.mcgregor@vecima.com> 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. Signed-off-by: Daniel McGregor <daniel.mcgregor@vecima.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org> (cherry picked from commit 3d7cb207ad4ec3cd5a3064147d3c9b5a1730d0fb) Signed-off-by: Steve Sakoman <steve@sakoman.com>
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():
all_srcrevs = collections.defaultdict(list)
for root, dirs, files in os.walk(options.buildhistory_dir):
+ dirs.sort()
if '.git' in dirs:
dirs.remove('.git')
for fn in files: