From e0d47569fa05a84feb6401b52c91d61e814003dd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Karel=20Ko=C4=8D=C3=AD?= Date: Tue, 28 Aug 2018 11:03:12 +0200 Subject: Implement some lock cleaning I hope that this will work. --- templates/turris4x.run | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'templates') diff --git a/templates/turris4x.run b/templates/turris4x.run index bbc8551..dc461b6 100755 --- a/templates/turris4x.run +++ b/templates/turris4x.run @@ -9,6 +9,7 @@ echo_stage "Get packages" git_fetch "https://git.cynerd.cz/openwrt-personal-pkgs" pkgs curl "https://repo.turris.cz/$BOARD-$BRANCH/git-hash" > git-hash +laminar_self_lock sdk if [ -f "$WORKSPACE/openwrt-git-hash" ] && cmp -s git-hash "$WORKSPACE/openwrt-git-hash"; then echo_info "Using previous version of SDK" cp -a "$WORKSPACE/sdk" openwrt @@ -36,13 +37,12 @@ else echo_stage "Store SDK in workspace" cd .. - laminar_self_lock sdk rm -rf "$WORKSPACE/sdk" cp -a openwrt "$WORKSPACE/sdk" - laminar_self_unlock sdk cd openwrt fi +laminar_self_unlock sdk echo_stage "Add our repository as feed" echo "src-git personal file://$WORKSPACE/pkgs" >> feeds.conf -- cgit v1.2.3