Skip to content
Snippets Groups Projects
Verified Commit 74b6c0d6 authored by Karel Koci's avatar Karel Koci :metal:
Browse files

compile_pkgs: fix repo_checkout

parent 30f3e6c6
1 merge request!123Turris OS 5.0 (HBK)
......@@ -282,7 +282,7 @@ checkout() {
available_commands+=( ["repo_checkout"]="Start everything from scratch relative to repository on repo.turris.cz - all changes deleted and copy of OpenWRT gets checked out with same hashes as repo.turris.cz" )
repo_checkout() {
_report "Starting out $TARGET_BOARD-$PUBLISH_BRANCH!"
curl "https://repo.turris.cz/$PUBLISH_BRANCH/packages/$TARGET_BOARD/git-hash" | tail -n +2 | grep -v '^$' | sed 's/^ \* //;s/: /:/' > repo-git-hashes
curl "https://repo.turris.cz/$PUBLISH_BRANCH/$TARGET_BOARD/packages/git-hash" | tail -n +2 | grep -v '^$' | sed 's/^ \* //;s/: /:/' > repo-git-hashes
_checkout_init
git fetch
git checkout -f "$(awk -F : '/^openwrt:/{print $2}' repo-git-hashes)"
......
......@@ -74,7 +74,7 @@ get_usign() {
updater_ng_repodetect() {
local REPO="$1"
local BOARD="${2:-mox}"
local VERSION="$(curl "https://repo.turris.cz/$REPO/packages/$BOARD/turrispackages/Packages" | \
local VERSION="$(curl "https://repo.turris.cz/$REPO/$BOARD/packages/turrispackages/Packages" | \
awk '/^Package: updater-ng$/,/^$/ { if ($1 == "Version:") { gsub("-.*$","",$2); print $2 } }')"
if [ -z "$VERSION" ]; then
echo "Detection of updater-ng version from repository failed. Using $UPDATER_VERSION instead."
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment