]> https://gitweb.dealii.org/ - candi.git/commitdiff
moves git cherry-pick to package_unpack just before package_specific_patch 102/head
authorUwe Köcher <mail@uwe.koecher.cc>
Wed, 17 Oct 2018 08:00:11 +0000 (10:00 +0200)
committerUwe Köcher <mail@uwe.koecher.cc>
Wed, 17 Oct 2018 08:00:11 +0000 (10:00 +0200)
candi.sh

index a1cf055e8090e2c174b0a639e6521ffc9b73f6f7..f4c14a5c433d3465c6dc5c8395ef6c3ab2692500 100755 (executable)
--- a/candi.sh
+++ b/candi.sh
@@ -351,15 +351,6 @@ package_fetch () {
             quit_if_fail "candi: git checkout ${VERSION} --force failed"
             cd ..
         fi
-        
-        # git cherry-pick on commits given by ${CHERRYPICKCOMMITS}
-        if [ ${STABLE_BUILD} = true ] && [ ! -z "${CHERRYPICKCOMMITS}" ]; then
-            cecho ${INFO} "candi: git cherry-pick -X theirs ${CHERRYPICKCOMMITS}"
-            cd ${EXTRACTSTO}
-            git cherry-pick -X theirs ${CHERRYPICKCOMMITS}
-            quit_if_fail "candi: git cherry-pick -X theirs ${CHERRYPICKCOMMITS} failed"
-            cd ..
-        fi
 
     elif [ ${PACKING} = "hg" ]; then
         cd ${UNPACK_PATH}
@@ -431,6 +422,14 @@ package_unpack() {
         fi
     fi
 
+    # Apply patches with git cherry-pick of commits given by ${CHERRYPICKCOMMITS}
+    if [ ${PACKING} = "git" ] && [ ! -z "${CHERRYPICKCOMMITS}" ]; then
+        cecho ${INFO} "candi: git cherry-pick -X theirs ${CHERRYPICKCOMMITS}"
+        cd ${UNPACK_PATH}/${EXTRACTSTO}
+        git cherry-pick -X theirs ${CHERRYPICKCOMMITS}
+        quit_if_fail "candi: git cherry-pick -X theirs ${CHERRYPICKCOMMITS} failed"
+    fi
+
     # Apply patches
     cd ${UNPACK_PATH}/${EXTRACTSTO}
     package_specific_patch

In the beginning the Universe was created. This has made a lot of people very angry and has been widely regarded as a bad move.

Douglas Adams


Typeset in Trocchi and Trocchi Bold Sans Serif.