mirror of
https://github.com/rocky-linux/srpmproc.git
synced 2025-01-07 08:50:56 +00:00
no-dup-mode should not fail for new packages
This commit is contained in:
parent
dbc948a453
commit
49a22b9061
1 changed files with 7 additions and 7 deletions
|
@ -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()))
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue