Prepare archive root when editing it

This commit is contained in:
Oliver Sauder committed 2017-11-27 11:08:31 +01:00
1 parent b98abcc049
commit 5d301fb1b7
3 files changed
+9 -3

No files matched your search

+6
View File
@@ -112,6 +112,12 @@ func NewRemoteRepo(name string, archiveRoot string, distribution string, compone
return result, nil
}
// SetArchiveRoot of remote repo
func (repo *RemoteRepo) SetArchiveRoot(archiveRoot string) {
repo.ArchiveRoot = archiveRoot
repo.prepare()
}
func (repo *RemoteRepo) prepare() error {
var err error