diff --git a/pkg/file/xar.go b/pkg/file/xar.go index 48e54ab9edc9..5181caf45e49 100644 --- a/pkg/file/xar.go +++ b/pkg/file/xar.go @@ -389,20 +389,6 @@ out: } } - if identifier == "" { - for _, pkg := range d.PkgRefs { - if pkg.PackageIdentifier != "" { - identifier = pkg.PackageIdentifier - break - } - - if pkg.ID != "" { - identifier = pkg.ID - break - } - } - } - // if the identifier is still empty, try to use the product id if identifier == "" && d.Product.ID != "" { identifier = d.Product.ID