Skip to content

Commit b53e6b7

Browse files
committed
Fixing package name with numeric issue in top level package resolving
Signed-off-by: Mah, Yock Gen <yock.gen.mah@intel.com>
1 parent 9b135d4 commit b53e6b7

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

internal/ospackage/rpmutils/helper.go

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -405,7 +405,11 @@ func ResolveTopPackageConflicts(want string, all []ospackage.PackageInfo) (ospac
405405
candidates = append(candidates, pi)
406406
break
407407
}
408-
cleanName := extractBasePackageNameFromFile(pi.Name)
408+
// Use PkgName if available, otherwise extract from filename
409+
cleanName := pi.PkgName
410+
if cleanName == "" {
411+
cleanName = extractBasePackageNameFromFile(pi.Name)
412+
}
409413

410414
if isGlob {
411415
if matchPackageRequest(want, cleanName) || matchPackageRequest(want, pi.Name) {

0 commit comments

Comments
 (0)