Replace percentage in tage with underscore

This commit is contained in:
Mustafa Gezen 2021-04-26 04:00:00 +02:00
parent 5bbbfb8f82
commit d272dd817f
1 changed files with 1 additions and 1 deletions

View File

@ -160,7 +160,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)
newTag = strings.Replace(newTag, "%", "_", -1)
rpmFile := md.RpmFile
// create new Repo for final dist