aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDan McGregor <danismostlikely@gmail.com>2020-06-15 16:01:43 -0600
committerRichard Purdie <richard.purdie@linuxfoundation.org>2020-06-17 11:09:27 +0100
commit3d7cb207ad4ec3cd5a3064147d3c9b5a1730d0fb (patch)
tree5b27c3b01e36c89e1af9e1a07dda079e5447a29a
parent60ff220548125bbdc6812669af711fb3650d87aa (diff)
downloadopenembedded-core-contrib-3d7cb207ad4ec3cd5a3064147d3c9b5a1730d0fb.tar.gz
openembedded-core-contrib-3d7cb207ad4ec3cd5a3064147d3c9b5a1730d0fb.tar.bz2
openembedded-core-contrib-3d7cb207ad4ec3cd5a3064147d3c9b5a1730d0fb.zip
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>
-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 c4d203ff4d9..340bee78bb1 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: