mirror of
https://codeberg.org/kiss-community/kiss
synced 2024-11-04 14:05:41 -07:00
Merge pull request #96 from kisslinux/choices
kiss: Do auto alts if < 10
This commit is contained in:
commit
87c59cb737
6
kiss
6
kiss
@ -778,10 +778,14 @@ pkg_conflicts() {
|
|||||||
|
|
||||||
[ -s "$cac_dir/$pid-m" ] || return 0
|
[ -s "$cac_dir/$pid-m" ] || return 0
|
||||||
|
|
||||||
|
# Count the total conflicts to determine when to
|
||||||
|
# automatically enable the alternatives feature.
|
||||||
|
con_total=$("$grep" -Fxf "$cac_dir/$pid-m" -- "$@" | wc -l)
|
||||||
|
|
||||||
# Use 'grep' to list matching lines between the to
|
# Use 'grep' to list matching lines between the to
|
||||||
# be installed package's manifest and the above filtered
|
# be installed package's manifest and the above filtered
|
||||||
# list.
|
# list.
|
||||||
if [ "$KISS_CHOICE" ]; then
|
if [ "$KISS_CHOICE" ] || [ "$con_total" -le 10 ]; then
|
||||||
"$grep" -Fxf "$cac_dir/$pid-m" -- "$@" |
|
"$grep" -Fxf "$cac_dir/$pid-m" -- "$@" |
|
||||||
|
|
||||||
# This is a novel way of offering an "alternatives" system.
|
# This is a novel way of offering an "alternatives" system.
|
||||||
|
Loading…
Reference in New Issue
Block a user