diff --git a/cmd.go b/cmd.go index 0bd1e3cc..f1a66422 100644 --- a/cmd.go +++ b/cmd.go @@ -36,8 +36,8 @@ New operations: yay {-G --getpkgbuild} [package(s)] Permanent configuration options: - --topdown Shows repository's packages first and then aur's - --bottomup Shows aur's packages first and then repository's + --topdown Shows repository's packages first and then AUR's + --bottomup Shows AUR's packages first and then repository's --devel Check -git/-svn/-hg development version --nodevel Disable development version checking --afterclean Clean package sources after successful build @@ -176,7 +176,7 @@ func initAlpm() (err error) { //TODO //current system does not allow duplicate arguments //but pacman allows multiple cachdirs to be passed - //for now only hanle one cache dir + //for now only handle one cache dir value, _, exists = cmdArgs.getArg("cachdir") if exists { alpmConf.CacheDir = []string{value} @@ -234,7 +234,7 @@ cleanup: //cleanup //from here on out dont exit if an error occurs //if we fail to save the configuration - //atleast continue on and try clean up other parts + //at least continue on and try clean up other parts if updated { err = saveVCSInfo() @@ -312,7 +312,7 @@ func handleCmd() (err error) { //this function should only set config options //but currently still uses the switch left over from old code -//eventuall this should be refactored out futher +//eventually this should be refactored out futher //my current plan is to have yay specific operations in its own operator //e.g. yay -Y --gendb //e.g yay -Yg @@ -424,7 +424,7 @@ func handleGetpkgbuild() (err error) { if err != nil { //we print the error instead of returning it //seems as we can handle multiple errors without stoping - //theres no easy way arround this right now + //theres no easy way around this right now fmt.Println(pkg+":", err) } } @@ -521,7 +521,7 @@ func BuildRange(input string) ([]int, error) { return BuildIntRange(rangeStart, rangeEnd), err } -// Contains returns wheter e is present in s +// Contains returns whether e is present in s func contains(s []string, e string) bool { for _, a := range s { if a == e { @@ -653,7 +653,7 @@ func numberMenu(pkgS []string, flags []string) (err error) { return err } -// passToPacman outsorces execution to pacman binary without modifications. +// passToPacman outsources execution to pacman binary without modifications. func passToPacman(args *arguments) error { var cmd *exec.Cmd argArr := make([]string, 0) @@ -674,7 +674,7 @@ func passToPacman(args *arguments) error { return err } -// passToMakepkg outsorces execution to makepkg binary without modifications. +// passToMakepkg outsources execution to makepkg binary without modifications. func passToMakepkg(dir string, args ...string) (err error) { cmd := exec.Command(config.MakepkgBin, args...) cmd.Stdin, cmd.Stdout, cmd.Stderr = os.Stdin, os.Stdout, os.Stderr diff --git a/dependencies.go b/dependencies.go index 518a0cb6..5e9812e8 100644 --- a/dependencies.go +++ b/dependencies.go @@ -235,7 +235,7 @@ func depTreeRecursive(dt *depTree, localDb *alpm.Db, syncDb alpm.DbList, isMake for k, pkgName := range currentProcess { pkg, exists := dt.Aur[pkgName] - //didnt get it in the request + //did not get it in the request if !exists { dt.Missing.set(dt.ToProcess[k]) continue @@ -259,7 +259,7 @@ func depTreeRecursive(dt *depTree, localDb *alpm.Db, syncDb alpm.DbList, isMake } _, exists = dt.Missing[dep] - //we know it doesnt resolve so skip + //we know it does not resolve so skip if exists { continue } @@ -277,7 +277,7 @@ func depTreeRecursive(dt *depTree, localDb *alpm.Db, syncDb alpm.DbList, isMake continue } - //if all else failes add it to next search + //if all else fails add it to next search nextProcess = append(nextProcess, versionedDep) } } diff --git a/install.go b/install.go index bcbcb136..cdd3849e 100644 --- a/install.go +++ b/install.go @@ -146,7 +146,7 @@ func install(parser *arguments) error { } if len(dc.RepoMake)+len(dc.AurMake) > 0 { - if continueTask("Remove make dependancies?", "yY") { + if continueTask("Remove make dependencies?", "yY") { return nil } diff --git a/upgrade.go b/upgrade.go index 24a095d9..56db3a49 100644 --- a/upgrade.go +++ b/upgrade.go @@ -278,7 +278,7 @@ func upRepo(local []alpm.Package) (upSlice, error) { return slice, nil } -//Contains returns wheter e is present in s +//Contains returns whether e is present in s func containsInt(s []int, e int) bool { for _, a := range s { if a == e {