Skip to content

Commit

Permalink
Update install.am
Browse files Browse the repository at this point in the history
- check metapackages from the list of applications
  • Loading branch information
ivan-hc authored Jan 13, 2025
1 parent c33704f commit c8a7440
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions modules/install.am
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit c8a7440

Please sign in to comment.