From c6472156d760895302a8939550c76ec547086c72 Mon Sep 17 00:00:00 2001 From: Dylan Araps Date: Fri, 12 Jun 2020 18:12:02 +0300 Subject: [PATCH] kiss: Check that there are conflicts prior to choice creation --- kiss | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/kiss b/kiss index a217470..d04db24 100755 --- a/kiss +++ b/kiss @@ -757,7 +757,9 @@ pkg_conflicts() { # doesn't overwrite anything it shouldn't in '/var/db/kiss/installed'. grep -q ":/var/db/kiss/installed/" "$mak_dir/$pid-c" || choice_auto=1 - if [ "$KISS_CHOICE" != 0 ] && [ "$choice_auto" = 1 ]; then + if [ "$KISS_CHOICE" != 0 ] && + [ "$choice_auto" = 1 ] && + [ -s "$mak_dir/$pid-c" ]; then # This is a novel way of offering an "alternatives" system. # It is entirely dynamic and all "choices" are created and # destroyed on the fly.