mirror of
https://git.yoctoproject.org/poky
synced 2026-04-18 12:32:12 +02:00
scripts/buildhistory_analysis: Avoid tracebacks from file comparision code
We're seeing tracebacks from buildhistory analysing the python 3.8 -> 3.9 upgrade due to the significant file renames. Avoid these by checking before removal as they can happen multiple times. (From OE-Core rev: b1eb390bbcb995c0da70478e17f9170721c75341) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
@@ -373,8 +373,10 @@ def compare_file_lists(alines, blines, compare_ownership=True):
|
||||
removals.remove(removal2)
|
||||
continue
|
||||
filechanges.append(FileChange(removal, FileChange.changetype_move, addition))
|
||||
additions.remove(addition)
|
||||
removals.remove(removal)
|
||||
if addition in additions:
|
||||
additions.remove(addition)
|
||||
if removal in removals:
|
||||
removals.remove(removal)
|
||||
for rename in renames:
|
||||
filechanges.append(FileChange(renames[rename], FileChange.changetype_move, rename))
|
||||
|
||||
|
||||
Reference in New Issue
Block a user