pkg

package
v1.4.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 9, 2024 License: GPL-3.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ConfigExists

func ConfigExists(pkgbase string) (bool, error)

func GetLocalPkgnames added in v1.4.0

func GetLocalPkgnames(pkgbase string) ([]string, error)

func GetLocalVersion added in v1.4.0

func GetLocalVersion(pkgbase string) (string, error)

func GetLocalVersionParts added in v1.4.0

func GetLocalVersionParts(pkgbase string) (string, string, int, int, error)

func GetMergedPkgnames added in v1.3.9

func GetMergedPkgnames(pkgbase string) ([]string, error)

func GetMergedSources added in v1.1.5

func GetMergedSources(pkgbase string) (map[string][]string, error)

func GetMergedVcsPkgver added in v1.1.5

func GetMergedVcsPkgver(pkgbase string) (string, int, int, error)

func GetMergedVersion

func GetMergedVersion(pkgbase string) (string, error)

func GetMergedVersionParts added in v1.3.9

func GetMergedVersionParts(pkgbase string) (string, string, int, int, error)

func GetPackages

func GetPackages() ([]string, error)

func GetUpstreamPkgnames

func GetUpstreamPkgnames(pkgbase string) ([]string, error)

func GetUpstreamVersion

func GetUpstreamVersion(pkgbase string) (string, error)

func GetUpstreamVersionParts added in v1.3.9

func GetUpstreamVersionParts(pkgbase string) (string, string, int, int, error)

func GetVersionString added in v1.3.9

func GetVersionString(epoch string, pkgver string, pkgrel int, subpkgrel int) string

func PackageExists

func PackageExists(pkgbase string) (bool, error)

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 PackageConfigOverrideFromTo

type PackageConfigOverrideFromTo struct {
	From string `yaml:"from,omitempty"`
	To   string `yaml:"to,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

type PackageVcsSubmodule struct {
	Source string `yaml:"source,omitempty"`
	Name   string `yaml:"name,omitempty"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL