mirror of
https://github.com/EnumeratedDev/bpm-utils.git
synced 2026-09-15 18:46:12 +00:00
other: add package flag support
This commit is contained in:
@@ -33,10 +33,27 @@ type PackageInfo struct {
|
||||
Replaces []string `yaml:"replaces,omitempty"`
|
||||
Provides []string `yaml:"provides,omitempty"`
|
||||
Options []string `yaml:"options,omitempty"`
|
||||
Flags []PackageFlag `yaml:"flags,omitempty"`
|
||||
Downloads []PackageDownload `yaml:"downloads,omitempty"`
|
||||
SplitPackages []*PackageInfo `yaml:"split_packages,omitempty"`
|
||||
}
|
||||
|
||||
type PackageFlag struct {
|
||||
Name string `yaml:"name"`
|
||||
DefaultValue string `yaml:"default_value"`
|
||||
BuiltValue string `yaml:"built_value"`
|
||||
AcceptedValues []PackageAcceptedValue `yaml:"accepted_values,omitempty"`
|
||||
}
|
||||
|
||||
type PackageAcceptedValue struct {
|
||||
Value string `yaml:"value"`
|
||||
Depends []string `yaml:"depends,omitempty"`
|
||||
RuntimeDepends []string `yaml:"runtime_depends,omitempty"`
|
||||
OptionalDepends []string `yaml:"optional_depends,omitempty"`
|
||||
MakeDepends []string `yaml:"make_depends,omitempty"`
|
||||
CheckDepends []string `yaml:"check_depends,omitempty"`
|
||||
}
|
||||
|
||||
type PackageDownload struct {
|
||||
Url string `yaml:"url"`
|
||||
Type string `yaml:"type,omitempty"`
|
||||
|
||||
Reference in New Issue
Block a user