Skip to content

Commit

Permalink
Fetch specific OctoPrint from GitHub
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
foosel committed Nov 1, 2021
1 parent 083c3fd commit d9545d0
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion scripts/01-update-octoprint
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@ source /common.sh
install_cleanup_trap

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

0 comments on commit d9545d0

Please sign in to comment.