mirror of
https://github.com/Jguer/yay.git
synced 2024-11-06 09:07:21 +01:00
Random fixups
This commit is contained in:
parent
112046853b
commit
6415c23be2
10
download.go
10
download.go
@ -99,12 +99,6 @@ func gitMerge(path string, name string) error {
|
||||
return nil
|
||||
}
|
||||
|
||||
func gitDiff(path string, name string) error {
|
||||
err := show(passToGit(filepath.Join(path, name), "diff", "HEAD..HEAD@{upstream}"))
|
||||
|
||||
return err
|
||||
}
|
||||
|
||||
// DownloadAndUnpack downloads url tgz and extracts to path.
|
||||
func downloadAndUnpack(url string, path string) error {
|
||||
err := os.MkdirAll(path, 0755)
|
||||
@ -140,6 +134,10 @@ func getPkgbuilds(pkgs []string) error {
|
||||
pkgs = removeInvalidTargets(pkgs)
|
||||
aur, repo, err := packageSlices(pkgs)
|
||||
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
|
||||
for n := range aur {
|
||||
_, pkg := splitDBFromName(aur[n])
|
||||
aur[n] = pkg
|
||||
|
4
exec.go
4
exec.go
@ -98,10 +98,6 @@ func passToPacman(args *arguments) *exec.Cmd {
|
||||
}
|
||||
|
||||
func passToMakepkg(dir string, args ...string) *exec.Cmd {
|
||||
if config.NoConfirm {
|
||||
args = append(args)
|
||||
}
|
||||
|
||||
mflags := strings.Fields(config.MFlags)
|
||||
args = append(args, mflags...)
|
||||
|
||||
|
2
keys.go
2
keys.go
@ -114,7 +114,7 @@ func formatKeysToImport(keys pgpKeySet) (string, error) {
|
||||
for _, base := range bases {
|
||||
pkglist += base.String() + " "
|
||||
}
|
||||
pkglist = strings.TrimRight(pkglist, " ")
|
||||
pkglist = strings.TrimRight(pkglist, " ")
|
||||
buffer.WriteString(fmt.Sprintf("\n%s %s, required by: %s", yellow(bold(smallArrow)), cyan(key), cyan(pkglist)))
|
||||
}
|
||||
return buffer.String(), nil
|
||||
|
Loading…
Reference in New Issue
Block a user