Commit 9f1e6d4c authored by Mustafa Gezen's avatar Mustafa Gezen
Browse files

Escape newTag for percentages (for Sprintf)

parent 6cb6d239
......@@ -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
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment