mirror of
https://github.com/rocky-linux/srpmproc.git
synced 2025-01-06 00:20:56 +00:00
Escape newTag for percentages (for Sprintf)
This commit is contained in:
parent
6cb6d239da
commit
9f1e6d4caa
1 changed files with 1 additions and 0 deletions
|
@ -159,6 +159,7 @@ func ProcessRPM(pd *data.ProcessData) {
|
|||
match := tagImportRegex.FindStringSubmatch(matchString)
|
||||
md.PushBranch = pd.BranchPrefix + strings.TrimPrefix(match[2], pd.ImportBranchPrefix)
|
||||
newTag := "imports/" + pd.BranchPrefix + strings.TrimPrefix(match[1], "imports/"+pd.ImportBranchPrefix)
|
||||
newTag = strings.Replace(newTag, "%", "%%", -1)
|
||||
|
||||
rpmFile := md.RpmFile
|
||||
// create new Repo for final dist
|
||||
|
|
Loading…
Reference in a new issue