mirror of
				https://github.com/go-gitea/gitea.git
				synced 2025-10-29 10:57:44 +09:00 
			
		
		
		
	Support for grouping RPMs using paths (#26984)
The current rpm repository places all packages in the same repository, and different systems (el7,f34) may hit packages that do not belong to this distribution ( #25304 ) , which now supports grouping of rpm.  Fixes #25304 . Fixes #27056 . Refactor: [#25866](https://github.com/go-gitea/gitea/pull/25866)
This commit is contained in:
		| @@ -4,6 +4,7 @@ | ||||
| package templates | ||||
|  | ||||
| import ( | ||||
| 	"regexp" | ||||
| 	"strings" | ||||
|  | ||||
| 	"code.gitea.io/gitea/modules/base" | ||||
| @@ -25,6 +26,10 @@ func (su *StringUtils) Contains(s, substr string) bool { | ||||
| 	return strings.Contains(s, substr) | ||||
| } | ||||
|  | ||||
| func (su *StringUtils) ReplaceAllStringRegex(s, regex, new string) string { | ||||
| 	return regexp.MustCompile(regex).ReplaceAllString(s, new) | ||||
| } | ||||
|  | ||||
| func (su *StringUtils) Split(s, sep string) []string { | ||||
| 	return strings.Split(s, sep) | ||||
| } | ||||
|   | ||||
		Reference in New Issue
	
	Block a user