mirror of
https://github.com/rocky-linux/srpmproc.git
synced 2024-11-15 01:31:24 +00:00
12 lines
371 B
Go
12 lines
371 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("(\\.el8(?:(?:_\\d)|))")
|
||
|
moduleDist = regexp.MustCompile("\\.module.+$")
|
||
|
)
|