From b8ef531b765247e072476dd12144076744b652ad Mon Sep 17 00:00:00 2001 From: morganamilo Date: Tue, 3 Apr 2018 17:48:03 +0100 Subject: [PATCH] Strip request targets instead of making a new one --- cmd.go | 1 - install.go | 5 ++++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/cmd.go b/cmd.go index 94de5b39..aeb06952 100644 --- a/cmd.go +++ b/cmd.go @@ -379,7 +379,6 @@ func numberMenu(pkgS []string, flags []string) (err error) { aurQ.printSearch(numpq + 1) } - if aurErr != nil { fmt.Printf("Error during AUR search: %s\n", aurErr) fmt.Println("Showing repo packages only") diff --git a/install.go b/install.go index 967077e7..f77d1690 100644 --- a/install.go +++ b/install.go @@ -72,7 +72,10 @@ func install(parser *arguments) error { parser.targets.set(name) } - requestTargets = parser.targets.toSlice() + for i, pkg := range requestTargets { + _, name := splitDbFromName(pkg) + requestTargets[i] = name + } if len(dt.Missing) > 0 { str := bold(red(arrow+" Error: ")) + "Could not find all required packages:"