mirror of
https://github.com/rocky-linux/peridot.git
synced 2024-06-01 19:20:14 +00:00
12 lines
372 B
Go
12 lines
372 B
Go
|
package rpmutils
|
||
|
|
||
|
import "regexp"
|
||
|
|
||
|
var (
|
||
|
Nvr = regexp.MustCompile("^(\\S+)-([\\w~%.+]+)-(\\w+(?:\\.[\\w+]+)+?)(?:\\.(\\w+))?(?:\\.rpm)?$")
|
||
|
epoch = regexp.MustCompile("(\\d+):")
|
||
|
module = regexp.MustCompile("^(.+)-(.+)-([0-9]{19})\\.((?:.+){8})$")
|
||
|
dist = regexp.MustCompile("(\\.el\\d(?:_\\d|))")
|
||
|
moduleDist = regexp.MustCompile("\\.module.+$")
|
||
|
)
|