upgrade

package
v12.3.5 Latest Latest
Warning

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

Go to latest
Published: Mar 23, 2024 License: GPL-3.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func StylizedNameWithRepository

func StylizedNameWithRepository(u *Upgrade) string

Types

type Filter

type Filter func(*Upgrade) bool

Filter decides if specific package should be included in theincluded in the results.

type UpSlice

type UpSlice struct {
	Up         []Upgrade
	Repos      []string
	PulledDeps []Upgrade
}

upSlice is a slice of Upgrades.

func UpAUR

func UpAUR(log *text.Logger, remote map[string]db.IPackage, aurdata map[string]*query.Pkg,
	timeUpdate, enableDowngrade bool,
) UpSlice

UpAUR gathers foreign packages and checks if they have new versions. Output: Upgrade type package list.

func UpDevel

func UpDevel(
	ctx context.Context,
	log *text.Logger,
	remote map[string]db.IPackage,
	aurdata map[string]*query.Pkg,
	localCache vcs.Store,
) UpSlice

func (UpSlice) Len

func (u UpSlice) Len() int

func (UpSlice) Less

func (u UpSlice) Less(i, j int) bool

func (UpSlice) Print

func (u UpSlice) Print(logger *text.Logger)

Print prints the details of the packages to upgrade.

func (UpSlice) PrintDeps added in v12.0.5

func (u UpSlice) PrintDeps(logger *text.Logger)

func (UpSlice) Swap

func (u UpSlice) Swap(i, j int)

type Upgrade

type Upgrade = db.Upgrade

Upgrade type describes a system upgrade.

type UpgradeService

type UpgradeService struct {
	AURWarnings *query.AURWarnings
	// contains filtered or unexported fields
}

func NewUpgradeService

func NewUpgradeService(grapher *dep.Grapher, aurCache aur.QueryClient,
	dbExecutor db.Executor, vcsStore vcs.Store,
	cfg *settings.Configuration, noConfirm bool, logger *text.Logger,
) *UpgradeService

func (*UpgradeService) GraphUpgrades

func (u *UpgradeService) GraphUpgrades(ctx context.Context,
	graph *topo.Graph[string, *dep.InstallInfo],
	enableDowngrade bool, filter Filter,
) (*topo.Graph[string, *dep.InstallInfo], error)

func (*UpgradeService) UserExcludeUpgrades

func (u *UpgradeService) UserExcludeUpgrades(graph *topo.Graph[string, *dep.InstallInfo]) ([]string, error)

userExcludeUpgrades asks the user which packages to exclude from the upgrade and removes them from the graph

Jump to

Keyboard shortcuts

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