mirror of
https://github.com/mudler/luet.git
synced 2025-09-09 19:19:49 +00:00
Add SetUri to Repository
This commit is contained in:
@@ -38,6 +38,7 @@ type Repositories []Repository
|
|||||||
type Repository interface {
|
type Repository interface {
|
||||||
GetName() string
|
GetName() string
|
||||||
GetUri() string
|
GetUri() string
|
||||||
|
SetUri(string)
|
||||||
GetPriority() int
|
GetPriority() int
|
||||||
GetIndex() compiler.ArtifactIndex
|
GetIndex() compiler.ArtifactIndex
|
||||||
GetTree() tree.Builder
|
GetTree() tree.Builder
|
||||||
|
@@ -19,6 +19,7 @@ import (
|
|||||||
"io/ioutil"
|
"io/ioutil"
|
||||||
"os"
|
"os"
|
||||||
"path/filepath"
|
"path/filepath"
|
||||||
|
"regexp"
|
||||||
"sort"
|
"sort"
|
||||||
"strings"
|
"strings"
|
||||||
|
|
||||||
@@ -145,6 +146,9 @@ func (r *LuetRepository) SetType(p string) {
|
|||||||
r.Type = p
|
r.Type = p
|
||||||
}
|
}
|
||||||
|
|
||||||
|
func (r *LuetRepository) SetUri(p string) {
|
||||||
|
r.Uri = p
|
||||||
|
}
|
||||||
func (r *LuetRepository) GetUri() string {
|
func (r *LuetRepository) GetUri() string {
|
||||||
return r.Uri
|
return r.Uri
|
||||||
}
|
}
|
||||||
@@ -247,6 +251,7 @@ func (r *LuetRepository) Sync() (Repository, error) {
|
|||||||
}
|
}
|
||||||
repo.SetTree(reciper)
|
repo.SetTree(reciper)
|
||||||
repo.SetTreePath(treefs)
|
repo.SetTreePath(treefs)
|
||||||
|
repo.SetUri(r.GetUri())
|
||||||
|
|
||||||
return repo, nil
|
return repo, nil
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user