From 6d70a314a1ea374014d312b69c22140548a95798 Mon Sep 17 00:00:00 2001 From: Buzz Date: Sun, 30 Jul 2017 22:06:02 +1000 Subject: [PATCH] test --- .../artoo/artoo-firmware_1.2.11.bb | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) diff --git a/meta-3dr/recipes-firmware/artoo/artoo-firmware_1.2.11.bb b/meta-3dr/recipes-firmware/artoo/artoo-firmware_1.2.11.bb index 53b9ebb..e26f563 100644 --- a/meta-3dr/recipes-firmware/artoo/artoo-firmware_1.2.11.bb +++ b/meta-3dr/recipes-firmware/artoo/artoo-firmware_1.2.11.bb @@ -14,7 +14,8 @@ FILES_${PN} += "${firmwaredir}/" FILES_${PN} += "${firmwaredir}/cfg" REPO_NAME = "artoo" -REPO_TAG = "v${PV}" +REPO_TAG = "master" +#REPO_TAG = "v${PV}" FILE_EXT = "bin" FILE_SRC = "artoo_${PV}.${FILE_EXT}" FILE_DST = "artoo_${PV}.${FILE_EXT}" @@ -34,17 +35,20 @@ do_fetch () { # There must be a github "personal access token" in the file ~/.ssh/github_token # https://help.github.com/articles/creating-an-access-token-for-command-line-use/ - TOKEN=$(cat ~/.ssh/github_token) + # TOKEN=$(cat ~/.ssh/github_token) - SRC_URL="https://api.github.com/repos/OpenSolo/${REPO_NAME}/releases/tags/${REPO_TAG}" + # SRC_URL="https://api.github.com/repos/OpenSolo/${REPO_NAME}/releases/tags/${REPO_TAG}" - BIN_URL=$(curl -s -H "Authorization: token ${TOKEN}" -H "Accept: application/json" ${SRC_URL} | jq -r '.assets[] | select(.name | endswith(".${FILE_EXT}")) | .url') + # BIN_URL=$(curl -s -H "Authorization: token ${TOKEN}" -H "Accept: application/json" ${SRC_URL} | jq -r '.assets[] | select(.name | endswith(".${FILE_EXT}")) | .url') # NB: supply github access token as url param because if we supply it as a header, # once github redirects us to s3, it gets included in that request as well # and amazon complains that 2 forms of auth have been provided and quits. - echo 'curl -v -L -H "Accept: application/octet-stream" ${BIN_URL}?access_token=${TOKEN} -o ${WORKDIR}/${FILE_SRC}' - curl -v -L -H "Accept: application/octet-stream" ${BIN_URL}?access_token=${TOKEN} -o ${WORKDIR}/${FILE_SRC} + # echo 'curl -v -L -H "Accept: application/octet-stream" ${BIN_URL}?access_token=${TOKEN} -o ${WORKDIR}/${FILE_SRC}' + # curl -v -L -H "Accept: application/octet-stream" ${BIN_URL}?access_token=${TOKEN} -o ${WORKDIR}/${FILE_SRC} + + # fake it. + touch ${WORKDIR}/${FILE_SRC} } do_install () {