You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix(ospackage): improve RPM package name extraction for complex names
- Fix extractBasePackageNameFromFile to correctly handle packages with digits in names
- Work backwards from dist/arch markers (.azl3, x86_64, etc.) to find version boundary
- Prevents false positives where architecture strings matched digits in package names
- Add multiple fallback strategies for different RPM naming patterns
Examples:
- libpcre2-8-0-10.42-3.azl3.x86_64.rpm → libpcre2-8-0 (was incorrectly libpcre2-8-0-10.42)
- curl-8.8.0-2.azl3.x86_64.rpm → curl (unchanged)
- curl-devel-8.8.0-1.azl3.x86_64.rpm → curl-devel (unchanged)
Makes RPM package name trimming consistent with Debian/Ubuntu behavior where
package names like libpcre2-8-0, libpcre2-16-0, libpcre2-32-0 are distinct
packages (different SONAME versions) rather than version variants.
0 commit comments