Skip to content

Commit

Permalink
small fix
Browse files Browse the repository at this point in the history
  • Loading branch information
paulcacheux committed Oct 10, 2024
1 parent 6602d51 commit a74ae41
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion rpm/opensuse.go
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ func (b *OpenSUSEBackend) GetKernelHeaders(directory string) error {
var installedPackages []dnfv2.PkgAndData
for _, targetPackageName := range packagesToInstall {
pkgMatcher := func(pkg *repo.PkgInfoHeader) bool {
return pkg.Name == pkgNevra && kernelRelease == fmt.Sprintf("%s-%s", pkg.Version.Ver, pkg.Version.Rel) && pkg.Arch == b.target.Uname.Machine
return pkg.Name == targetPackageName && kernelRelease == fmt.Sprintf("%s-%s", pkg.Version.Ver, pkg.Version.Rel) && pkg.Arch == b.target.Uname.Machine
}

pkg, data, err := b.dnfBackend.FetchPackage(pkgMatcher)
Expand Down

0 comments on commit a74ae41

Please sign in to comment.