cpt

[ARCHIVED] Carbs Packaging Tools
git clone git://git.ckyln.com/~cem/cpt.git
Log | Files | Refs | README | LICENSE

commit 87c59cb73780787c4251e15ff8e5aece8f425928
parent 2f564d6704a10bc833df453cbfcc9a53dd2a0da8
Author: dylan <dylan.araps@gmail.com>
Date:   Tue, 28 Jan 2020 18:26:47 +0200

Merge pull request #96 from kisslinux/choices

kiss: Do auto alts if < 10
Diffstat:
Mkiss | 6+++++-
1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/kiss b/kiss @@ -778,10 +778,14 @@ pkg_conflicts() { [ -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 # be installed package's manifest and the above filtered # list. - if [ "$KISS_CHOICE" ]; then + if [ "$KISS_CHOICE" ] || [ "$con_total" -le 10 ]; then "$grep" -Fxf "$cac_dir/$pid-m" -- "$@" | # This is a novel way of offering an "alternatives" system.