Skip to content

Commit d9545d0

Browse files
committed
Fetch specific OctoPrint from GitHub
If we fetch it from PyPI, it might not be available *right* after a OctoPrint/OctoPrint side release trigger arrives. Apparently it takes a whee bit to propagate through.
1 parent 083c3fd commit d9545d0

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

scripts/01-update-octoprint

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,8 @@ source /common.sh
77
install_cleanup_trap
88

99
if [ -n "$OCTOPRINT_VERSION" ]; then
10-
sudo -u pi /home/pi/oprint/bin/pip install -U OctoPrint==$OCTOPRINT_VERSION
10+
# fetch from GitHub since PyPI might not yet be synced through right after a fresh release
11+
sudo -u pi /home/pi/oprint/bin/pip install -U https://github.com/OctoPrint/OctoPrint/archive/refs/tags/$OCTOPRINT_VERSION.zip
1112
else
1213
sudo -u pi /home/pi/oprint/bin/pip install -U OctoPrint
1314
fi

0 commit comments

Comments
 (0)