Escape newTag for percentages (for Sprintf)

This commit is contained in:
Mustafa Gezen 2021-04-13 06:39:28 +02:00
parent 6cb6d239da
commit 9f1e6d4caa
1 changed files with 1 additions and 0 deletions

View File

@ -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