]> git.ipfire.org Git - people/pmueller/ipfire-2.x.git/blobdiff - make.sh
make.sh: Configure Pakfire to load packages from the correct tree
[people/pmueller/ipfire-2.x.git] / make.sh
diff --git a/make.sh b/make.sh
index d46282b8e17787acd4d18aa2242fbaaa476997d6..277ac8633ee380f6e5b1ae1da280f90db74faf65 100755 (executable)
--- a/make.sh
+++ b/make.sh
@@ -528,6 +528,19 @@ prepareenv() {
        # Export variable
        SYSTEM_RELEASE="${system_release}"
 
+       # Decide on PAKFIRE_TREE
+       case "${GIT_BRANCH}" in
+               core*)
+                       PAKFIRE_TREE="stable"
+                       ;;
+               master)
+                       PAKFIRE_TREE="testing"
+                       ;;
+               *)
+                       PAKFIRE_TREE="unstable"
+                       ;;
+       esac
+
        # Setup ccache cache size
        enterchroot ccache --max-size="${CCACHE_CACHE_SIZE}" >/dev/null
 }
@@ -545,6 +558,7 @@ enterchroot() {
                PATH="${PATH}" \
                SYSTEM_RELEASE="${SYSTEM_RELEASE}" \
                PAKFIRE_CORE="${PAKFIRE_CORE}" \
+               PAKFIRE_TREE="${PAKFIRE_TREE}" \
                NAME="${NAME}" \
                SNAME="${SNAME}" \
                VERSION="${VERSION}" \