• Alexis Murzeau's avatar
    comparators/deb: Fix matching for .deb archive members. (Closes: #903565) · 8b90ec1a
    Alexis Murzeau authored
    my_members is iterated in DebContainer.perform_fuzzy_matching but is modified
    in Container.comparisons.prep_yield which remove the current item from
    This causes an `RuntimeError: OrderedDict mutated during iteration` error.
    This was not detected by the existing `test_deb.test_compare_different_compression`
    test as it triggers only when there is more than one file in the .deb file.
    (That test use only one file: control.tar.{gz,xz}).
    Signed-off-by: Chris Lamb's avatarChris Lamb <lamby@debian.org>
deb.py 7.5 KB