From 69d3d40f006fac3b40b91ab8a00e367a3c96a014 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20Storsj=C3=B6?= Date: Tue, 17 Aug 2021 11:13:45 +0300 Subject: [PATCH] build-python: Fix rebuilding with an already checked out directory After applying patches (with plain 'patch' instead of 'git am'), we need to reset the tree to be able to check out the targeted version again. --- build-python.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/build-python.sh b/build-python.sh index 96ebcbc..b12c632 100755 --- a/build-python.sh +++ b/build-python.sh @@ -120,6 +120,7 @@ fi if [ -n "$SYNC" ] || [ -n "$CHECKOUT_PYTHON" ]; then cd cpython-mingw [ -z "$SYNC" ] || git fetch + git reset --hard git checkout $PYTHON_VERSION_MINGW cat ../patches/python/*.patch | patch -Nup1 autoreconf -vfi