enhance package database schema and configuration; add dependencies
This commit is contained in:
@@ -36,6 +36,8 @@ func DefaultConfigTOML() (*ConfigTOML, error) {
|
||||
config.Config.Cache_d = consts.DefaultCache_d
|
||||
config.Config.Data_d = consts.DefaultData_d
|
||||
config.Config.HttpPort = consts.DefaultHttpPort
|
||||
config.Config.Bin_d = consts.DefaultBin_d
|
||||
config.Config.StorePackages = true
|
||||
|
||||
return &config, nil
|
||||
}
|
||||
|
||||
@@ -18,9 +18,10 @@ type Manifest struct {
|
||||
|
||||
type ConfigTOML struct {
|
||||
Config struct {
|
||||
HttpPort int `toml:"httpPort"`
|
||||
Cache_d string `toml:"cache_d"`
|
||||
Data_d string `toml:"data_d"`
|
||||
Bin_d string `toml:"bin_d"`
|
||||
HttpPort int `toml:"httpPort"`
|
||||
Cache_d string `toml:"cache_d"`
|
||||
Data_d string `toml:"data_d"`
|
||||
Bin_d string `toml:"bin_d"`
|
||||
StorePackages bool `toml:"store_packages"`
|
||||
} `toml:"Config"`
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user