mirror of
https://github.com/Jguer/yay
synced 2024-10-31 13:42:27 +00:00
Treat more errors
This commit is contained in:
parent
16a33d706b
commit
2c6948c33a
1 changed files with 5 additions and 2 deletions
|
@ -122,10 +122,13 @@ func NumberMenu(pkgName string, flags []string) (err error) {
|
|||
func Install(pkgs []string, flags []string) error {
|
||||
aurs, repos, _ := pac.PackageSlices(pkgs)
|
||||
|
||||
pac.Install(repos, flags)
|
||||
err := pac.Install(repos, flags)
|
||||
if err != nil {
|
||||
fmt.Println("Error installing repo packages.")
|
||||
}
|
||||
|
||||
q, n, err := aur.MultiInfo(aurs)
|
||||
if len(aurs) != n {
|
||||
if len(aurs) != n || err != nil {
|
||||
fmt.Println("Unable to get info on some packages")
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue