Commit 4180f8a4 authored by Vitaly Lipatov's avatar Vitaly Lipatov

epm-addrepo: add to rewrite p1?/p? and c1?f?/c?f? without apt-repo

parent aa988408
...@@ -73,33 +73,20 @@ __epm_addrepo_etersoft_addon() ...@@ -73,33 +73,20 @@ __epm_addrepo_etersoft_addon()
fi fi
} }
__epm_addrepo_altsp() __epm_addrepo_alt_repo()
{ {
local comp local comp
local sign
local repo="$1" local repo="$1"
case "$repo" in comp="$repo"
c10f1) sign="$repo"
comp="CF3" rhas "$repo" "^c" && sign="cert8"
;; local baseurl="http://ftp.basealt.ru/pub/distributions/ALTLinux"
c9f2) epm repo add "rpm [$sign] $baseurl $comp/branch/$DISTRARCH classic" || return
comp="CF2"
;;
c9f1)
comp="CF1"
;;
c9)
comp="cf"
;;
*)
fatal "Uknown CF comp $repo"
;;
esac
epm repo add "rpm [cert8] http://update.altsp.su/pub/distributions/ALTLinux $comp/branch/$DISTRARCH classic" || return
if [ "$DISTRARCH" = "x86_64" ] ; then if [ "$DISTRARCH" = "x86_64" ] ; then
epm repo add "rpm [cert8] http://update.altsp.su/pub/distributions/ALTLinux $comp/branch/x86_64-i586 classic" || return epm repo add "rpm [$sign] $baseurl $comp/branch/x86_64-i586 classic" || return
fi fi
epm repo add "rpm [cert8] http://update.altsp.su/pub/distributions/ALTLinux $comp/branch/noarch classic" || return epm repo add "rpm [$sign] $baseurl $comp/branch/noarch classic" || return
} }
get_archlist() get_archlist()
...@@ -308,8 +295,12 @@ __epm_addrepo_altlinux() ...@@ -308,8 +295,12 @@ __epm_addrepo_altlinux()
fi fi
case "$repo" in case "$repo" in
c10f*|c9f*|c9) c10f2|c10f1|c9f2|c9f1|c9)
__epm_addrepo_altsp "$repo" __epm_addrepo_alt_repo "$repo"
return
;;
p11|p10|p9|p8)
__epm_addrepo_alt_repo "$repo"
return return
;; ;;
esac esac
......
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