From 11f5d6c83b1f69ea105b4d69475d73e438eecc98 Mon Sep 17 00:00:00 2001 From: Flole998 Date: Tue, 19 May 2020 01:43:17 +0200 Subject: [PATCH] Attempt to fix doozer builds (#1340) * Update lib.sh * Install python3 requirements --- .doozer.json | 4 ++++ support/lib.sh | 12 ++++++------ 2 files changed, 10 insertions(+), 6 deletions(-) diff --git a/.doozer.json b/.doozer.json index 9498a6834..6d495b440 100644 --- a/.doozer.json +++ b/.doozer.json @@ -234,10 +234,12 @@ "libpcre2-dev", "libdvbcsa-dev", "python3", + "python3-pip", "debhelper", "ccache" ], "buildcmd": [ + "pip3 install requests", "AUTOBUILD_CONFIGURE_EXTRA=--enable-ccache\\ --enable-ffmpeg_static\\ --enable-hdhomerun_static ./Autobuild.sh -t ${TARGET} -j ${PARALLEL} -w ${WORKDIR}", "support/bintray.py publish filelist.txt", ] @@ -260,10 +262,12 @@ "libpcre2-dev", "libdvbcsa-dev", "python3", + "python3-pip", "debhelper", "ccache" ], "buildcmd": [ + "pip3 install requests", "AUTOBUILD_CONFIGURE_EXTRA=--enable-ccache\\ --enable-ffmpeg_static\\ --enable-hdhomerun_static ./Autobuild.sh -t ${TARGET} -j ${PARALLEL} -w ${WORKDIR}", "support/bintray.py publish filelist.txt", ] diff --git a/support/lib.sh b/support/lib.sh index 77d3d471a..3cb14276d 100755 --- a/support/lib.sh +++ b/support/lib.sh @@ -99,10 +99,10 @@ function download N="${PCLOUD_BASEDIR}/staticlib/${CODENAME}/${ARCH}/${LIB_NAME}-${LIB_HASH}.tgz" echo "DOWNLOAD ${N} / ${PCLOUD_HASHDIR}" - if [[ "$(python3 -V)" =~ "Python 3" ]]; then - python3 ${ROOTDIR}/support/pcloud.py publink_download "${PCLOUD_HASHDIR}" "${N}" "${P}.tmp" - else + if [[ "$(python -V)" =~ "Python 2" ]]; then ${ROOTDIR}/support/pcloud.py publink_download "${PCLOUD_HASHDIR}" "${N}" "${P}.tmp" + else + python3 ${ROOTDIR}/support/pcloud.py publink_download "${PCLOUD_HASHDIR}" "${N}" "${P}.tmp" fi R=$? @@ -177,10 +177,10 @@ function upload # Upload N="${PCLOUD_BASEDIR}/staticlib/${CODENAME}/${ARCH}/${LIB_NAME}-${LIB_HASH}.tgz" echo "UPLOAD ${N}" - if [[ "$(python3 -V)" =~ "Python 3" ]]; then - python3 ${ROOTDIR}/support/pcloud.py upload "${N}" "${P}.tmp" || return 1 - else + if [[ "$(python -V)" =~ "Python 2" ]]; then ${ROOTDIR}/support/pcloud.py upload "${N}" "${P}.tmp" || return 1 + else + python3 ${ROOTDIR}/support/pcloud.py upload "${N}" "${P}.tmp" || return 1 fi # Done -- 2.47.2