Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix detection of gcc-c++ and other package names. (oamg#374)
Fix detection of gcc-c++ and other package names. The regular expression that was being used to parse package names out of yum output was missing gcc-c++, NetworkManager, and other package names. Using a simpler regex and a function that parses the package names from the rest of the NVR should fix that. This fixes a user visible problem where packages like gcc-c++ can cause convert2rhel to fail to downgrade packages. This is because gcc-c++ would be missed by the regex and thus we'd be unable to figure out that we need to downgrade gcc-c++ when downgrading gcc. * test_find_pkg_names: Add a few more package names that represent cornercases ("." in package name, starts with a digit, has version numbers in the name, has uppercase characters, has an epoch). * Found that the Requires dataset should be causing a test failure. Break that into a separate test function that tests a subset of functionality for now with comments on what is going wrong. Opened Issue oamg#378 to address that in the future. * Add pkg names with dots, dashes, starting with numbers, plus signs and uppercase to our tests of get_problematic_pkgs(). All of these filenames now are properly parsed for Error tests (which is what this PR focuses on fixing) but do not work when specified in a Requires. That should be addressed when oamg#378 is fixed. * Added the java-1.8.0-openjdk package to the unusual package names to check (version number with dots embedded inside of the package name) Co-authored-by: Eric Gustavsson <[email protected]> Co-authored-by: Michal Bocek <[email protected]>
- Loading branch information