aboutsummaryrefslogtreecommitdiffstats
path: root/modules/setting/packages.go
diff options
context:
space:
mode:
Diffstat (limited to 'modules/setting/packages.go')
-rw-r--r--modules/setting/packages.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/modules/setting/packages.go b/modules/setting/packages.go
index 84da4eb53e..13599e5a63 100644
--- a/modules/setting/packages.go
+++ b/modules/setting/packages.go
@@ -46,13 +46,13 @@ var (
}
)
-func newPackages() {
- sec := Cfg.Section("packages")
+func loadPackagesFrom(rootCfg ConfigProvider) {
+ sec := rootCfg.Section("packages")
if err := sec.MapTo(&Packages); err != nil {
log.Fatal("Failed to map Packages settings: %v", err)
}
- Packages.Storage = getStorage("packages", "", nil)
+ Packages.Storage = getStorage(rootCfg, "packages", "", nil)
appURL, _ := url.Parse(AppURL)
Packages.RegistryHost = appURL.Host