no-dup-mode should not fail for new packages

This commit is contained in:
Mustafa Gezen 2020-12-22 06:19:53 +01:00
parent dbc948a453
commit 49a22b9061

View File

@ -87,14 +87,14 @@ func ProcessRPM(pd *ProcessData) {
Auth: pd.Authenticator,
})
if err != nil {
log.Fatalf("could not list remote: %v", err)
}
for _, ref := range list {
if !strings.HasPrefix(string(ref.Name()), "refs/tags/imports") {
continue
log.Println("ignoring no-dup-mode")
} else {
for _, ref := range list {
if !strings.HasPrefix(string(ref.Name()), "refs/tags/imports") {
continue
}
tagIgnoreList = append(tagIgnoreList, string(ref.Name()))
}
tagIgnoreList = append(tagIgnoreList, string(ref.Name()))
}
}