mirror of https://github.com/bazelbuild/rules_pkg
ec08e7fccf
* rpm: Refine prefix matching for sub RPMs to reduce fragility The current prefix matching for sub RPMs can potentially fail in two ways: - if we have two overlapping prefixes we may match the shorter prefix against the wrong RPM - the shorter prefix will match repeatedly even after finding its target This change keeps track of which sub RPMs have already match so avoid double matching a shorter prefix. Additionally, we sort the sub RPM list by name length in reverse order. This ensures that we prefer to match the longest prefixes first and avoid double matching with the same prefix. * Expand subrpm test for similarly named RPMs This change expands the basic subrpm test to account for multiple subrpms that have matching prefixes. |
||
---|---|---|
.. | ||
source_date_epoch | ||
tree_artifacts | ||
BUILD | ||
analysis_tests.bzl | ||
make_rpm_test.py | ||
pkg_rpm_basic_test.py | ||
rpm_util.py | ||
template-test.spec.tpl | ||
test.c | ||
test_debuginfo_rpm_contents.txt.golden | ||
test_rpm_dirs_contents.txt.golden | ||
test_sub_rpm_contents.txt.golden | ||
toolchain_tests.bzl |