Documentation ¶
Index ¶
- func ConfigExists(pkgbase string) (bool, error)
- func GetLocalPkgnames(pkgbase string) ([]string, error)
- func GetLocalVersion(pkgbase string) (string, error)
- func GetLocalVersionParts(pkgbase string) (string, string, int, int, error)
- func GetMergedPkgnames(pkgbase string) ([]string, error)
- func GetMergedSources(pkgbase string) (map[string][]string, error)
- func GetMergedVcsPkgver(pkgbase string) (string, int, int, error)
- func GetMergedVersion(pkgbase string) (string, error)
- func GetMergedVersionParts(pkgbase string) (string, string, int, int, error)
- func GetPackages() ([]string, error)
- func GetUpstreamPkgnames(pkgbase string) ([]string, error)
- func GetUpstreamVersion(pkgbase string) (string, error)
- func GetUpstreamVersionParts(pkgbase string) (string, string, int, int, error)
- func GetVersionString(epoch string, pkgver string, pkgrel int, subpkgrel int) string
- func PackageExists(pkgbase string) (bool, error)
- type PackageConfig
- func (pconfig *PackageConfig) CleanPkgrelBumpVersions(pkgver string) error
- func (pconfig *PackageConfig) ClearMerge(pkgbase string) error
- func (pconfig *PackageConfig) GenVcsInfo(pkgbase string) (bool, error)
- func (pconfig *PackageConfig) Load(pkgbase string) error
- func (pconfig *PackageConfig) Merge(pkgbase string, processVcs bool) error
- func (pconfig *PackageConfig) ProcessOverrides(pkgbase string) error
- func (pconfig *PackageConfig) ProcessVcsOverrides(pkgbase string) error
- func (pconfig *PackageConfig) Write(pkgbase string) error
- type PackageConfigModifySection
- type PackageConfigOverrideFromTo
- type PackageConfigOverrides
- type PackageVcs
- type PackageVcsSubmodule
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ConfigExists ¶
func GetLocalPkgnames ¶ added in v1.4.0
func GetLocalVersion ¶ added in v1.4.0
func GetLocalVersionParts ¶ added in v1.4.0
func GetMergedPkgnames ¶ added in v1.3.9
func GetMergedSources ¶ added in v1.1.5
func GetMergedVcsPkgver ¶ added in v1.1.5
func GetMergedVersion ¶
func GetMergedVersionParts ¶ added in v1.3.9
func GetPackages ¶
func GetUpstreamPkgnames ¶
func GetUpstreamVersion ¶
func GetUpstreamVersionParts ¶ added in v1.3.9
func GetVersionString ¶ added in v1.3.9
func PackageExists ¶
Types ¶
type PackageConfig ¶
type PackageConfig struct { Source string `yaml:"source,omitempty"` Overrides *PackageConfigOverrides `yaml:"overrides,omitempty"` Ignore bool `yaml:"ignore,omitempty"` Vcs *PackageVcs `yaml:"vcs,omitempty"` }
func LoadConfig ¶
func LoadConfig(pkgbase string) (*PackageConfig, error)
func (*PackageConfig) CleanPkgrelBumpVersions ¶
func (pconfig *PackageConfig) CleanPkgrelBumpVersions(pkgver string) error
func (*PackageConfig) ClearMerge ¶ added in v1.2.1
func (pconfig *PackageConfig) ClearMerge(pkgbase string) error
func (*PackageConfig) GenVcsInfo ¶ added in v1.1.5
func (pconfig *PackageConfig) GenVcsInfo(pkgbase string) (bool, error)
func (*PackageConfig) Load ¶
func (pconfig *PackageConfig) Load(pkgbase string) error
func (*PackageConfig) Merge ¶
func (pconfig *PackageConfig) Merge(pkgbase string, processVcs bool) error
func (*PackageConfig) ProcessOverrides ¶
func (pconfig *PackageConfig) ProcessOverrides(pkgbase string) error
func (*PackageConfig) ProcessVcsOverrides ¶ added in v1.1.5
func (pconfig *PackageConfig) ProcessVcsOverrides(pkgbase string) error
func (*PackageConfig) Write ¶
func (pconfig *PackageConfig) Write(pkgbase string) error
type PackageConfigModifySection ¶
type PackageConfigModifySection struct { Type string `yaml:"type,omitempty"` Section string `yaml:"section,omitempty"` Sections []string `yaml:"sections,omitempty"` Package string `yaml:"package,omitempty"` Packages []string `yaml:"packages,omitempty"` Append string `yaml:"append,omitempty"` Prepend string `yaml:"prepend,omitempty"` Replace []*PackageConfigOverrideFromTo `yaml:"replace,omitempty"` Rename string `yaml:"rename,omitempty"` }
type PackageConfigOverrides ¶
type PackageConfigOverrides struct { BumpEpoch int `yaml:"bumpEpoch,omitempty"` BumpPkgrel map[string]int `yaml:"bumpPkgrel,omitempty"` ClearDependsVersions bool `yaml:"clearDependsVersions,omitempty"` ClearSignatures bool `yaml:"clearSignatures,omitempty"` DeleteFile []string `yaml:"deleteFile,omitempty"` ModifySection []*PackageConfigModifySection `yaml:"modifySection,omitempty"` RemoveSource []string `yaml:"removeSource,omitempty"` RenameFile []*PackageConfigOverrideFromTo `yaml:"renameFile,omitempty"` RenamePackage []*PackageConfigOverrideFromTo `yaml:"renamePackage,omitempty"` }
type PackageVcs ¶ added in v1.2.2
type PackageVcs struct { Pkgver string `yaml:"pkgver,omitempty"` Pkgrel int `yaml:"pkgrel,omitempty"` SourceOverrides []*PackageConfigOverrideFromTo `yaml:"sourceOverrides,omitempty"` Submodules map[string]PackageVcsSubmodule `yaml:"submodules,omitempty"` }
func (*PackageVcs) IsEqual ¶ added in v1.2.2
func (vcinfo *PackageVcs) IsEqual(newVcinfo *PackageVcs) bool
type PackageVcsSubmodule ¶ added in v1.3.1
Source Files ¶
Click to show internal directories.
Click to hide internal directories.