Skip to content

Commit

Permalink
fix failure to downgrade Python3 when required
Browse files Browse the repository at this point in the history
  • Loading branch information
OneCDOnly committed Jun 22, 2020
1 parent a53a16c commit 26cf506
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions sherpa.sh
Expand Up @@ -42,7 +42,7 @@ Init()
ResetErrorcode

readonly SCRIPT_FILE=sherpa.sh
readonly SCRIPT_VERSION=200622
readonly SCRIPT_VERSION=200623

# cherry-pick required binaries
readonly AWK_CMD=/bin/awk
Expand Down Expand Up @@ -1032,11 +1032,16 @@ DowngradePy3()
pkg_version=19.0.3-1
ipkg_urls+=(-O "${source_url}/archive/${pkg_base}-${pkg_name}_${pkg_version}_${pkg_arch}.ipk")

# and a specific version of cryptography, so SAB3 will restart correctly
# and a specific version of 'cryptography', so SAB3 will restart correctly
pkg_name=cryptography
pkg_version=2.7-2
ipkg_urls+=(-O "${source_url}/archive/${pkg_base}-${pkg_name}_${pkg_version}_${pkg_arch}.ipk")

# and a specific version of 'libffi', so 'pip3' will restart correctly
pkg_name=libffi
pkg_version=3.2.1-4
ipkg_urls+=(-O "${source_url}/archive/${pkg_name}_${pkg_version}_${pkg_arch}.ipk")

(cd "$IPKG_DL_PATH" && $CURL_CMD $curl_insecure_arg ${ipkg_urls[@]} >> "$dl_log_pathfile" 2>&1)

RunThisAndLogResults "$OPKG_CMD install --force-downgrade $IPKG_DL_PATH/*.ipk" "$log_pathfile"
Expand Down

0 comments on commit 26cf506

Please sign in to comment.