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
|
||||
|
Loading…
Reference in New Issue
Block a user