Add support for Zypper

This commit is contained in:
2025-04-12 19:49:18 +02:00
parent 55fd94c46b
commit 53c39b6f3d
4 changed files with 99 additions and 28 deletions

20
internal/index/common.go Normal file
View File

@@ -0,0 +1,20 @@
package index
import "strings"
type repomd struct {
Locations []location `xml:"data>location"`
}
type location struct {
Href string `xml:"href,attr"`
}
func (r repomd) getFilelists() string {
for _, loc := range r.Locations {
if strings.Contains(loc.Href, "filelists.xml") {
return loc.Href
}
}
return ""
}