Skip to content

Commit

Permalink
Fix typos
Browse files Browse the repository at this point in the history
  • Loading branch information
Morganamilo committed Jun 4, 2018
1 parent 6c22d59 commit bad0af1
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 16 deletions.
18 changes: 9 additions & 9 deletions depPool.go
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ func (dp *depPool) ResolveTargets(pkgs []string) error {

// skip targets already satisfied
// even if the user enters db/pkg and aur/pkg the latter will
// still get skiped even if it's from a different database to
// still get skipped even if it's from a different database to
// the one specified
// this is how pacman behaves
if dp.hasPackage(target.DepString()) {
Expand All @@ -109,7 +109,7 @@ func (dp *depPool) ResolveTargets(pkgs []string) error {
continue
}

// if theres a different priefix only look in that repo
// If there'ss a different priefix only look in that repo
if target.Db != "" {
singleDb, err = alpmHandle.SyncDbByName(target.Db)
if err != nil {
Expand All @@ -128,11 +128,11 @@ func (dp *depPool) ResolveTargets(pkgs []string) error {
continue
} else {
//check for groups
//currently we dont resolve the packages in a group
//currently we don't resolve the packages in a group
//only check if the group exists
//would be better to check the groups from singleDb if
//the user specified a db but theres no easy way to do
//it without making alpm_lists so dont bother for now
//the user specified a db but there's no easy way to do
//it without making alpm_lists so don't bother for now
//db/group is probably a rare use case
group, err := dp.SyncDb.PkgCachebyGroup(target.Name)
if err == nil {
Expand Down Expand Up @@ -167,7 +167,7 @@ func (dp *depPool) ResolveTargets(pkgs []string) error {
//
// For example if you were to -S yay then yay -Ss would give:
// yay-git yay-bin yay realyog pacui pacui-git ruby-yard
// These packages will all be added to the cache incase they are needed later
// These packages will all be added to the cache in case they are needed later
// Ofcouse only the first three packages provide yay, the rest are just false
// positives.
//
Expand Down Expand Up @@ -315,7 +315,7 @@ func (dp *depPool) resolveAURPackages(pkgs stringSet, explicit bool) error {
}

//assume it's in the aur
//ditch the versioning because the RPC cant handle it
//ditch the versioning because the RPC can't handle it
newAURPackages.set(dep)

}
Expand Down Expand Up @@ -376,8 +376,8 @@ func (dp *depPool) findSatisfierAur(dep string) *rpc.Pkg {

// This is mostly used to promote packages from the cache
// to the Install list
// Provide a pacman style provider menu if theres more than one candidate
// This acts slightly differenly from Pacman, It will give
// Provide a pacman style provider menu if there's more than one candidate
// This acts slightly differently from Pacman, It will give
// a menu even if a package with a matching name exists. I believe this
// method is better because most of the time you are choosing between
// foo and foo-git.
Expand Down
10 changes: 5 additions & 5 deletions doc/yay.8
Original file line number Diff line number Diff line change
Expand Up @@ -63,12 +63,12 @@ Yay will also remove cached data about devel packages\&.
.PP
\fB \-\-repo\fR
.RS 4
Assume all targets are from the repositories\&. Aditionally Actions such as
Assume all targets are from the repositories\&. Additionally Actions such as
sysupgrade will only act on repository packages\&.
.RE
\fB\-a \-\-aur\fR
.RS 4
Assume all targets are from the AUR\&. Aditionally Actions such as
Assume all targets are from the AUR\&. Additionally Actions such as
sysupgrade will only act on AUR packages\&.

Note that dependency resolving will still act as normal and include repository
Expand Down Expand Up @@ -139,7 +139,7 @@ a database refresh\&. Run \fByay \-Sy\fR Before this for an up to date result\&.
.RS 4
Print new news from the Archlinux homepage\&. News is considered new if it is
newer than the build date of all native packages\&. Pass this twice to show all
avaliable news\&.
available news\&.
.RE
.PP
\fB\-q \-\-quiet\fR
Expand Down Expand Up @@ -350,13 +350,13 @@ newer than the AUR's version use that instead of downloading a new one\&.
.RS 4
Look for matching providers when searching for AUR packages\&. When multiple
providers are found a menu will appear prompting you to pick one\&. This
increases dependency resolve time although this should not be noticable\&.
increases dependency resolve time although this should not be noticeable\&.
.RE
.PP
\fB\-\-noprovides\fR
.RS 4
Do not look for matching providers when searching for AUR packages\&. If
multiple providers happen to be found the menu will still apear\&.
multiple providers happen to be found the menu will still appear\&.
.RE
.PP
\fB\-\-pgpfetch\fR
Expand Down
4 changes: 2 additions & 2 deletions vcs.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ type vcsInfo map[string]shaInfos
type shaInfos map[string]shaInfo
type shaInfo struct {
Protocols []string `json:"protocols"`
Brach string `json:"branch"`
Branch string `json:"branch"`
SHA string `json:"sha"`
}

Expand Down Expand Up @@ -180,7 +180,7 @@ func (infos shaInfos) needsUpdate() bool {
hasUpdate := make(chan struct{})

checkHash := func(url string, info shaInfo) {
hash := getCommit(url, info.Brach, info.Protocols)
hash := getCommit(url, info.Branch, info.Protocols)
if hash != "" && hash != info.SHA {
hasUpdate <- struct{}{}
} else {
Expand Down

0 comments on commit bad0af1

Please sign in to comment.