mirror of
https://github.com/Jguer/yay
synced 2024-08-31 13:49:28 +00:00
Strip request targets instead of making a new one
This commit is contained in:
parent
0ccfd1a19f
commit
b8ef531b76
1
cmd.go
1
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")
|
||||
|
|
|
@ -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:"
|
||||
|
|
Loading…
Reference in a new issue