mirror of
https://github.com/Jguer/yay.git
synced 2025-12-07 00:03:15 -05:00
Merge pull request #51 from whereswaldon/typos
Resolve a few typos in documentation
This commit is contained in:
commit
2e409ae5b6
2
clean.go
2
clean.go
@ -32,7 +32,7 @@ func removeVCSPackage(pkgs []string) {
|
|||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
// CleanDependencies removels all dangling dependencies in system
|
// CleanDependencies removes all dangling dependencies in system
|
||||||
func cleanDependencies(pkgs []string) error {
|
func cleanDependencies(pkgs []string) error {
|
||||||
hanging, err := hangingPackages()
|
hanging, err := hangingPackages()
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
|||||||
10
upgrade.go
10
upgrade.go
@ -22,7 +22,7 @@ type upgrade struct {
|
|||||||
RemoteVersion string
|
RemoteVersion string
|
||||||
}
|
}
|
||||||
|
|
||||||
// Slice is a slice of Upgrades
|
// upSlice is a slice of Upgrades
|
||||||
type upSlice []upgrade
|
type upSlice []upgrade
|
||||||
|
|
||||||
func (u upSlice) Len() int { return len(u) }
|
func (u upSlice) Len() int { return len(u) }
|
||||||
@ -92,7 +92,7 @@ func (u upSlice) Print(start int) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// List returns lists of packages to upgrade from each source.
|
// upList returns lists of packages to upgrade from each source.
|
||||||
func upList() (aurUp upSlice, repoUp upSlice, err error) {
|
func upList() (aurUp upSlice, repoUp upSlice, err error) {
|
||||||
local, remote, _, remoteNames, err := filterPackages()
|
local, remote, _, remoteNames, err := filterPackages()
|
||||||
if err != nil {
|
if err != nil {
|
||||||
@ -141,7 +141,7 @@ loop:
|
|||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
// aur gathers foreign packages and checks if they have new versions.
|
// upAUR gathers foreign packages and checks if they have new versions.
|
||||||
// Output: Upgrade type package list.
|
// Output: Upgrade type package list.
|
||||||
func upAUR(remote []alpm.Package, remoteNames []string) (toUpgrade upSlice, err error) {
|
func upAUR(remote []alpm.Package, remoteNames []string) (toUpgrade upSlice, err error) {
|
||||||
var j int
|
var j int
|
||||||
@ -204,7 +204,7 @@ func upAUR(remote []alpm.Package, remoteNames []string) (toUpgrade upSlice, err
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// repo gathers local packages and checks if they have new versions.
|
// upRepo gathers local packages and checks if they have new versions.
|
||||||
// Output: Upgrade type package list.
|
// Output: Upgrade type package list.
|
||||||
func upRepo(local []alpm.Package) (upSlice, error) {
|
func upRepo(local []alpm.Package) (upSlice, error) {
|
||||||
dbList, err := AlpmHandle.SyncDbs()
|
dbList, err := AlpmHandle.SyncDbs()
|
||||||
@ -241,7 +241,7 @@ primeloop:
|
|||||||
return slice, nil
|
return slice, nil
|
||||||
}
|
}
|
||||||
|
|
||||||
// Upgrade handles updating the cache and installing updates.
|
// upgradePkgs handles updating the cache and installing updates.
|
||||||
func upgradePkgs(flags []string) error {
|
func upgradePkgs(flags []string) error {
|
||||||
aurUp, repoUp, err := upList()
|
aurUp, repoUp, err := upList()
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
|||||||
8
vcs.go
8
vcs.go
@ -30,7 +30,7 @@ type Info struct {
|
|||||||
|
|
||||||
type infos []Info
|
type infos []Info
|
||||||
|
|
||||||
// CreateDevelDB forces yay to create a DB of the existing development packages
|
// createDevelDB forces yay to create a DB of the existing development packages
|
||||||
func createDevelDB() error {
|
func createDevelDB() error {
|
||||||
_, _, _, remoteNames, err := filterPackages()
|
_, _, _, remoteNames, err := filterPackages()
|
||||||
if err != nil {
|
if err != nil {
|
||||||
@ -43,7 +43,7 @@ func createDevelDB() error {
|
|||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
|
|
||||||
// ParseSource returns owner and repo from source
|
// parseSource returns owner and repo from source
|
||||||
func parseSource(source string) (owner string, repo string) {
|
func parseSource(source string) (owner string, repo string) {
|
||||||
if !(strings.Contains(source, "git://") ||
|
if !(strings.Contains(source, "git://") ||
|
||||||
strings.Contains(source, ".git") ||
|
strings.Contains(source, ".git") ||
|
||||||
@ -90,7 +90,7 @@ func (info *Info) needsUpdate() bool {
|
|||||||
return false
|
return false
|
||||||
}
|
}
|
||||||
|
|
||||||
// CheckUpdates returns list of outdated packages
|
// checkUpdates returns list of outdated packages
|
||||||
func checkUpdates(foreign map[string]alpm.Package) (toUpdate []string) {
|
func checkUpdates(foreign map[string]alpm.Package) (toUpdate []string) {
|
||||||
for _, e := range savedInfo {
|
for _, e := range savedInfo {
|
||||||
if e.needsUpdate() {
|
if e.needsUpdate() {
|
||||||
@ -113,7 +113,7 @@ func inStore(pkgName string) *Info {
|
|||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
// BranchInfo updates saved information
|
// branchInfo updates saved information
|
||||||
func branchInfo(pkgName string, owner string, repo string) (err error) {
|
func branchInfo(pkgName string, owner string, repo string) (err error) {
|
||||||
updated = true
|
updated = true
|
||||||
var newRepo branches
|
var newRepo branches
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user