|
|
|
@@ -119,13 +119,12 @@ func GetRecommendRepoFromPromote(filename string) ([]map[string]interface{}, err |
|
|
|
|
|
|
|
//resultRepo := make([]*models.Repository, 0) |
|
|
|
for _, repoName := range result { |
|
|
|
|
|
|
|
tmpIndex1 := strings.Index(repoName, "##") |
|
|
|
log.Info("repoName=" + repoName + " tmpIndex1=" + fmt.Sprint(tmpIndex1) + " len(repoName)=" + fmt.Sprint(len(repoName))) |
|
|
|
//log.Info("repoName=" + repoName + " tmpIndex1=" + fmt.Sprint(tmpIndex1) + " len(repoName)=" + fmt.Sprint(len(repoName))) |
|
|
|
repoLabel := "" |
|
|
|
if tmpIndex1 != -1 { |
|
|
|
repoName := strings.Trim(repoName[0:tmpIndex1], " ") |
|
|
|
repoLabel = strings.Trim(repoName[tmpIndex1+2:], " ") |
|
|
|
repoName = strings.Trim(repoName[0:tmpIndex1], " ") |
|
|
|
} |
|
|
|
tmpIndex := strings.Index(repoName, "/") |
|
|
|
if tmpIndex == -1 { |
|
|
|
|