Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Release Engineering
Public
srpmproc
Commits
49a22b90
Commit
49a22b90
authored
Dec 22, 2020
by
Mustafa Gezen
Browse files
no-dup-mode should not fail for new packages
parent
dbc948a4
Changes
1
Hide whitespace changes
Inline
Side-by-side
internal/process.go
View file @
49a22b90
...
...
@@ -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
()))
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment