mirror of
https://github.com/Jguer/yay.git
synced 2024-11-06 09:07:21 +01:00
Ensure global pacman arguments are always used
This commit is contained in:
parent
e0a5e24a12
commit
5ac36ad97e
2
clean.go
2
clean.go
@ -45,7 +45,7 @@ func cleanRemove(pkgNames []string) (err error) {
|
||||
return nil
|
||||
}
|
||||
|
||||
arguments := makeArguments()
|
||||
arguments := cmdArgs.copyGlobal()
|
||||
arguments.addArg("R")
|
||||
arguments.addTarget(pkgNames...)
|
||||
|
||||
|
2
cmd.go
2
cmd.go
@ -350,7 +350,7 @@ func displayNumberMenu(pkgS []string) (err error) {
|
||||
}
|
||||
|
||||
include, exclude, _, otherExclude := parseNumberMenu(string(numberBuf))
|
||||
arguments := makeArguments()
|
||||
arguments := cmdArgs.copyGlobal()
|
||||
|
||||
isInclude := len(exclude) == 0 && len(otherExclude) == 0
|
||||
|
||||
|
@ -282,9 +282,9 @@ func install(parser *arguments) (err error) {
|
||||
return fmt.Errorf("Error installing repo packages")
|
||||
}
|
||||
|
||||
depArguments := makeArguments()
|
||||
depArguments := parser.copyGlobal()
|
||||
depArguments.addArg("D", "asdeps")
|
||||
expArguments := makeArguments()
|
||||
expArguments := parser.copyGlobal()
|
||||
expArguments.addArg("D", "asexplicit")
|
||||
|
||||
for _, pkg := range do.Repo {
|
||||
@ -1003,9 +1003,9 @@ func buildInstallPkgbuilds(dp *depPool, do *depOrder, srcinfos map[string]*gosrc
|
||||
}
|
||||
}
|
||||
|
||||
depArguments := makeArguments()
|
||||
depArguments := parser.copyGlobal()
|
||||
depArguments.addArg("D", "asdeps")
|
||||
expArguments := makeArguments()
|
||||
expArguments := parser.copyGlobal()
|
||||
expArguments.addArg("D", "asexplicit")
|
||||
|
||||
//remotenames: names of all non repo packages on the system
|
||||
|
Loading…
Reference in New Issue
Block a user