Skip to content

Commit

Permalink
Strip request targets instead of making a new one
Browse files Browse the repository at this point in the history
  • Loading branch information
Morganamilo committed Apr 3, 2018
1 parent 0ccfd1a commit b8ef531
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
1 change: 0 additions & 1 deletion cmd.go
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down
5 changes: 4 additions & 1 deletion install.go
Original file line number Diff line number Diff line change
Expand Up @@ -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:"
Expand Down

0 comments on commit b8ef531

Please sign in to comment.