diff --git a/modules/install.am b/modules/install.am index 151668fe0..3f8715109 100644 --- a/modules/install.am +++ b/modules/install.am @@ -95,11 +95,13 @@ _check_if_optional_dependences_are_needed() { _check_if_script_installs_a_metapackage() { # Check if the installation script is a metapackage (example one of the 40+ kdegames scripts) + [ ! -f "$AMDATADIR/$ARCH-apps" ] && _completion_lists for metapackage in $METAPACKAGES; do - if grep -q "$metapackage" ./"$arg" 2> /dev/null; then + if grep "◆ $arg : " "$AMDATADIR/$ARCH-apps" | grep -q "\"$metapackage\""; then if [ -d "$APPSPATH"/"$metapackage"/tmp ]; then $SUDOCMD "$APPSPATH"/"$metapackage"/remove 2> /dev/null - elif [ -d "$APPSPATH"/"$metapackage" ] || command -v "$metapackage" >/dev/null 2>&1; then + fi + if [ -d "$APPSPATH"/"$metapackage" ] || command -v "$metapackage" >/dev/null 2>&1; then LASTDIR=$(echo "$metapackage" | tr '[:lower:]' '[:upper:]') echo " ◆ $APPNAME IS PART OF \"$LASTDIR\", ALREADY INSTALLED" return 1