]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core-contrib.git/commitdiff
buildhistory_analysis: show renamed directories
authorRoss Burton <ross.burton@arm.com>
Wed, 10 Dec 2025 13:56:03 +0000 (13:56 +0000)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Mon, 15 Dec 2025 18:00:31 +0000 (18:00 +0000)
If a directory was just renamed but the contents did not change, it was
not listed in the output. This change should be listed, so be sure to
handle that case.

Signed-off-by: Ross Burton <ross.burton@arm.com>
Signed-off-by: Mathieu Dubois-Briand <mathieu.dubois-briand@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/lib/oe/buildhistory_analysis.py

index c1d502e89cf9efea44b45abd635a881d2112bfca..4a95a928adfea32638c025b8a17be4e17ce0b092 100644 (file)
@@ -150,10 +150,10 @@ class ChangeRecord:
                         lines.append('removed "{colour_remove}{value}{colour_default}"'.format(value=' '.join(removed), **colours))
                     if added:
                         lines.append('added "{colour_add}{value}{colour_default}"'.format(value=' '.join(added), **colours))
-            else:
+            elif not renamed_dirs:
                 lines.append('changed order')
 
-            if not (removed or added or changed_order):
+            if not (removed or added or changed_order or renamed_dirs):
                 out = ''
             else:
                 out = '%s: %s' % (self.fieldname, ', '.join(lines))