From: István Váradi Date: Wed, 10 Jul 2024 17:44:32 +0000 (+0200) Subject: Determine the base version and build kind using the Debian build branch X-Git-Tag: archive/raspbian/3.16.7-1_deb13u1+rpi1~1^2~12^2~6^2~115^2~1 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=5312d9a251ce96dbdf0dacfcba1f0ded6358459b;p=nextcloud-desktop.git Determine the base version and build kind using the Debian build branch Signed-off-by: István Váradi --- diff --git a/admin/linux/debian/drone-build.sh b/admin/linux/debian/drone-build.sh index 4758fad09..75ff98559 100755 --- a/admin/linux/debian/drone-build.sh +++ b/admin/linux/debian/drone-build.sh @@ -43,8 +43,19 @@ fi set -x cd "${DRONE_WORKSPACE}" +git config --global user.email "drone@noemail.invalid" +git config --global user.name "Drone User" git fetch --tags -read basever revdate kind <<<$(admin/linux/debian/scripts/git2changelog.py /tmp/tmpchangelog stable) + +for distribution in ${UBUNTU_DISTRIBUTIONS} ${DEBIAN_DISTRIBUTIONS}; do + git fetch origin debian/dist/${distribution}/${DRONE_TARGET_BRANCH} + git checkout origin/debian/dist/${distribution}/${DRONE_TARGET_BRANCH} + + git merge ${DRONE_COMMIT} + + read basever revdate kind <<<$(admin/linux/debian/scripts/git2changelog.py /tmp/tmpchangelog stable) + break +done cd "${DRONE_DIR}" @@ -64,8 +75,6 @@ cp -a ${DRONE_WORKSPACE} nextcloud-desktop_${basever}-${revdate} tar cjf nextcloud-desktop_${basever}-${revdate}.orig.tar.bz2 --exclude .git --exclude binary nextcloud-desktop_${basever}-${revdate} cd "${DRONE_WORKSPACE}" -git config --global user.email "drone@noemail.invalid" -git config --global user.name "Drone User" for distribution in ${UBUNTU_DISTRIBUTIONS} ${DEBIAN_DISTRIBUTIONS}; do git checkout -- .