Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
H
helm3
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
go
helm3
Commits
c616bb5a
Unverified
Commit
c616bb5a
authored
Nov 10, 2016
by
Matt Butcher
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix(helm): replace repo entry instead of duplicating
Closes #1522
parent
e4bbe33e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
1 deletion
+5
-1
repo.go
pkg/repo/repo.go
+5
-1
No files found.
pkg/repo/repo.go
View file @
c616bb5a
...
@@ -113,13 +113,17 @@ func (r *RepoFile) Add(re ...*Entry) {
...
@@ -113,13 +113,17 @@ func (r *RepoFile) Add(re ...*Entry) {
// entry with the same name doesn't exist in the repo file it will add it.
// entry with the same name doesn't exist in the repo file it will add it.
func
(
r
*
RepoFile
)
Update
(
re
...*
Entry
)
{
func
(
r
*
RepoFile
)
Update
(
re
...*
Entry
)
{
for
_
,
target
:=
range
re
{
for
_
,
target
:=
range
re
{
found
:=
false
for
j
,
repo
:=
range
r
.
Repositories
{
for
j
,
repo
:=
range
r
.
Repositories
{
if
repo
.
Name
==
target
.
Name
{
if
repo
.
Name
==
target
.
Name
{
r
.
Repositories
[
j
]
=
target
r
.
Repositories
[
j
]
=
target
found
=
true
break
break
}
}
}
}
r
.
Add
(
target
)
if
!
found
{
r
.
Add
(
target
)
}
}
}
}
}
...
...
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