Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 3daece78 authored by Jackeagle's avatar Jackeagle
Browse files

Merge branch '2501-master-muppets' into 'master'

build.sh: Introduce conditional REPO_GROUPS variable to dynamically manage repo groups.

See merge request !97
parents 8be7d58d e78e740a
Loading
Loading
Loading
Loading
+10 −1
Original line number Original line Diff line number Diff line
@@ -172,7 +172,16 @@ if [ -n "${BRANCH_NAME}" ] && [ -n "${DEVICE}" ]; then
    git checkout default.xml
    git checkout default.xml
    cd ../..
    cd ../..
  fi
  fi
  yes | repo init $REPO_INIT_PARAM -u "$REPO" -b "${TAG_PREFIX}${BRANCH_NAME}"

  # Set the REPO_GROUPS variable based on the android_version_major
  if [ "$android_version_major" -ge 14 ]; then
    REPO_GROUPS="-g default,-darwin,-muppets,muppets_$DEVICE"
  else
    REPO_GROUPS=""
  fi

  # Repo init source
  yes | repo init $REPO_INIT_PARAM -u "$REPO" -b "${TAG_PREFIX}${BRANCH_NAME}" $REPO_GROUPS


  if [ "$REPO_CUSTOM_MANIFEST" != false ]; then
  if [ "$REPO_CUSTOM_MANIFEST" != false ]; then
    wget -O .repo/manifests/default.xml $REPO_CUSTOM_MANIFEST
    wget -O .repo/manifests/default.xml $REPO_CUSTOM_MANIFEST