Fix --ignore flag while skipping updates
If --ignore was specified on the command line and the user skips packages using the number menu, packages would not be properly skipped because they the manual --ignore would overide the --ignore from the menu. Now correctly combine both --ignore flags into a single combined flag when passing to pacman.
This commit is contained in:
1 file changed
+7
-1
+7
-1
@@ -114,7 +114,13 @@ func install(parser *arguments) error {
|
||||
requestTargets = append(requestTargets, up)
|
||||
}
|
||||
|
||||
arguments.addParam("ignore", strings.Join(ignore.toSlice(), ","))
|
||||
value, _, exists := cmdArgs.getArg("ignore")
|
||||
ignoreStr := strings.Join(ignore.toSlice(), ",")
|
||||
if exists {
|
||||
ignoreStr += "," + value
|
||||
}
|
||||
|
||||
arguments.options["ignore"] = ignoreStr
|
||||
fmt.Println()
|
||||
|
||||
for pkg := range aurUp {
|
||||
|
||||
Reference in new issue
Block a user