Merge pull request #155 from Morganamilo/fixsi

Fix -Si failing when given a non existing package
This commit is contained in:
J Guerreiro 2018-02-17 18:00:58 +00:00 committed by GitHub
commit 2925b8fb0a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -153,7 +153,7 @@ func syncSearch(pkgS []string) (err error) {
// SyncInfo serves as a pacman -Si for repo packages and AUR packages.
func syncInfo(pkgS []string) (err error) {
aurS, repoS, _, err := packageSlices(pkgS)
aurS, repoS, missing, err := packageSlices(pkgS)
if err != nil {
return
}
@ -162,6 +162,7 @@ func syncInfo(pkgS []string) (err error) {
if len(repoS) != 0 {
arguments := cmdArgs.copy()
arguments.delTarget(aurS...)
arguments.delTarget(missing...)
err = passToPacman(arguments)
if err != nil {