Commit 8b6a2953 authored by Vitaly Lipatov's avatar Vitaly Lipatov

epm: fix eget --check using

parent 0e5eddcd
......@@ -31,9 +31,9 @@ __epm_korinf_site_mask() {
# set arch for Korinf compatibility
[ "$SYSTEMARCH" = "x86_64" ] && archprefix="x86_64/"
local URL="$EPM_KORINF_REPO_URL/$archprefix$DISTRNAME/$DISTRVERSION"
if ! eget --check "$URL" ; then
if ! eget --check-url "$URL" ; then
tURL="$EPM_KORINF_REPO_URL/$archprefix$BASEDISTRNAME/$DISTRREPONAME"
docmd eget --check "$tURL" && URL="$tURL"
docmd eget --check-url "$tURL" && URL="$tURL"
fi
eget --list --latest "$URL/$MASK*.$PKGFORMAT"
}
......
......@@ -22,7 +22,7 @@ PKGURL="$(eget --list --latest https://mango3d.io/downloads/ "LycheeSlicer-$VERS
# restore missed CDN for the latest release
PKGURL=$(echo $PKGURL | sed -e 's|mango-lychee.nyc3.digitaloceanspaces.com|mango-lychee.nyc3.cdn.digitaloceanspaces.com|')
if ! eget --check "$PKGURL" ; then
if ! eget --check-url "$PKGURL" ; then
# all previous versions return url to cdn with broken SSL (SSL connection broken only with wget or works only in a browser):
# Connecting to mango-lychee.nyc3.cdn.digitaloceanspaces.com (mango-lychee.nyc3.cdn.digitaloceanspaces.com)|205.185.216.42|:443... connected.
# Unable to establish SSL connection.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment