upgrade

package
v10.3.1 Latest Latest
Warning

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

Go to latest
Published: Jul 26, 2021 License: GPL-3.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetVersionDiff

func GetVersionDiff(oldVersion, newVersion string) (left, right string)

func StylizedNameWithRepository added in v10.2.0

func StylizedNameWithRepository(u Upgrade) string

Types

type Filter added in v10.2.0

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
}

upSlice is a slice of Upgrades

func UpAUR

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

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

func UpDevel

func UpDevel(
	remote []db.IPackage,
	aurdata map[string]*query.Pkg,
	localCache *vcs.InfoStore) 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()

Print prints the details of the packages to upgrade.

func (UpSlice) Swap

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

type Upgrade

type Upgrade = db.Upgrade

Upgrade type describes a system upgrade.

Jump to

Keyboard shortcuts

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