diff --git a/toolkit/tools/internal/packagerepo/repocloner/rpmrepocloner/rpmrepocloner.go b/toolkit/tools/internal/packagerepo/repocloner/rpmrepocloner/rpmrepocloner.go index d0e313a1d5..704671b541 100644 --- a/toolkit/tools/internal/packagerepo/repocloner/rpmrepocloner/rpmrepocloner.go +++ b/toolkit/tools/internal/packagerepo/repocloner/rpmrepocloner/rpmrepocloner.go @@ -35,8 +35,17 @@ var ( // Every valid line will be of the form: -. : packageLookupNameMatchRegex = regexp.MustCompile(`^\s*([^:]+(x86_64|aarch64|noarch))\s*:`) - // Every valid line will be of the form: . . fetcher-cloned-repo - listedPackageRegex = regexp.MustCompile(`^\s*(?P[a-zA-Z0-9_+-]+)\.(?P[a-zA-Z0-9_+-]+)\s*(?P[a-zA-Z0-9._+-]+)\.(?P[a-zA-Z0-9_+-]+)\s*fetcher-cloned-repo`) + // Every valid line will be of the form: . . + // For: + // + // COOL_package2-extended++.aarch64 1.1b.8_X-22~rc1.cm1 fetcher-cloned-repo + // + // We'd get: + // - package_name: COOL_package2-extended++ + // - architecture: aarch64 + // - version: 1.1b.8_X-22~rc1 + // - dist: cm1 + listedPackageRegex = regexp.MustCompile(`^\s*([[:alnum:]_+-]+)\.([[:alnum:]_+-]+)\s+([[:alnum:]._+~-]+)\.([[:alnum:]_+-]+)`) ) const (