Strip request targets instead of making a new one

This commit is contained in:
morganamilo 2018-04-03 17:48:03 +01:00
parent 0ccfd1a19f
commit b8ef531b76
No known key found for this signature in database
GPG key ID: 6FE9E7996B0B082E
2 changed files with 4 additions and 2 deletions

1
cmd.go
View file

@ -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")

View file

@ -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:"