2021-09-08 15:00:56 +00:00
|
|
|
package rpmutils
|
|
|
|
|
|
|
|
import "regexp"
|
|
|
|
|
|
|
|
var (
|
2022-05-10 14:32:31 +00:00
|
|
|
Nvr = regexp.MustCompile("^(\\S+)-([\\w~%.+]+)-(\\w+(?:\\.[\\w+]+)+?)(?:\\.(\\w+))?(?:\\.rpm)?$")
|
2021-09-08 15:00:56 +00:00
|
|
|
epoch = regexp.MustCompile("(\\d+):")
|
|
|
|
module = regexp.MustCompile("^(.+)-(.+)-([0-9]{19})\\.((?:.+){8})$")
|
2022-05-02 08:39:42 +00:00
|
|
|
dist = regexp.MustCompile("(\\.el\\d(?:_\\d|))")
|
2021-09-08 15:00:56 +00:00
|
|
|
moduleDist = regexp.MustCompile("\\.module.+$")
|
|
|
|
)
|