Skip to content
Snippets Groups Projects
Commit 5f6e45fb authored by Guillem Jover's avatar Guillem Jover
Browse files

Dpkg::BuildFlags: Fix strip method to always work with duplicates

The regex was not correctly matching at the beginning of the line with
leading spaces, which could be left by a previous replacement from
the same s/// operator. Instead switch to split the flag value and
filter based on a hash, which means we do not need to care about such
space issues anymore.

This change should not change the semantics for space separated options
in the flags, as the code was already splitting the passed values on
spaces, and then remapping on the entire flag value.

Improve strip unit tests to cover all these cases.

Closes: #1028044
parent 5ecd8ed2
No related branches found
No related tags found
1 merge request!4Update crimson to version from bookworm
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment