Skip to content

Commit

Permalink
Revert "chore: remove unneeded code block"
Browse files Browse the repository at this point in the history
This reverts commit 073d0bc.
  • Loading branch information
jahzielv committed Jan 10, 2025
1 parent 073d0bc commit 126415b
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions pkg/file/xar.go
Original file line number Diff line number Diff line change
Expand Up @@ -389,6 +389,20 @@ 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
Expand Down

0 comments on commit 126415b

Please sign in to comment.