Commit f6caa704 authored by Vitaly Lipatov's avatar Vitaly Lipatov

epm-addrepo: get real url before add (old apt doesn't support redirects)

parent 86851e12
......@@ -120,6 +120,9 @@ __epm_addrepo_altlinux_url()
local arch
local base
# apt supports 302 redirect only since apt 0.7.21 (14th April 2009)
url="$(eget --get-real-url $url)"
# URL to path/RPMS.addon
base="$(basename "$url")"
if echo "$base" | grep -q "^RPMS\." ; then
......
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