Commit 3480beb6 authored by Vitaly Lipatov's avatar Vitaly Lipatov

epm ei: add fallback to vendor/repo dir

parent 21c46a63
...@@ -28,8 +28,12 @@ __epm_korinf_site_mask() { ...@@ -28,8 +28,12 @@ __epm_korinf_site_mask() {
rhas "$MASK" "[-_]" || MASK="$MASK[-_][0-9]" rhas "$MASK" "[-_]" || MASK="$MASK[-_][0-9]"
# set arch for Korinf compatibility # set arch for Korinf compatibility
[ "$($DISTRVENDOR -a)" = "x86_64" ] && archprefix="x86_64/" [ "$($DISTRVENDOR -a)" = "x86_64" ] && archprefix="x86_64/"
local URL="http://updates.etersoft.ru/pub/Korinf" local URL="http://updates.etersoft.ru/pub/Korinf/$archprefix$($DISTRVENDOR -e)"
echo "$URL/$archprefix$($DISTRVENDOR -e)/$MASK*.$PKGFORMAT" if ! eget --check "$URL" ; then
tURL="http://updates.etersoft.ru/pub/Korinf/$archprefix$($DISTRVENDOR --vendor-name)/$($DISTRVENDOR --repo-name)"
docmd eget --check "$tURL" && URL="$tURL"
fi
echo "$URL/$MASK*.$PKGFORMAT"
} }
__epm_korinf_list() { __epm_korinf_list() {
......
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