Commit 5259eec6 authored by Vitaly Lipatov's avatar Vitaly Lipatov

epm-addrepo: implement task repo via full url

parent f6caa704
...@@ -73,7 +73,7 @@ __epm_addrepo_etersoft_addon() ...@@ -73,7 +73,7 @@ __epm_addrepo_etersoft_addon()
fi fi
} }
__epm_addrepo_alt_repo() __epm_addrepo_main_alt_repo()
{ {
local comp local comp
local sign local sign
...@@ -95,7 +95,7 @@ get_archlist() ...@@ -95,7 +95,7 @@ get_archlist()
echo "$DISTRARCH" echo "$DISTRARCH"
case $DISTRARCH in case $DISTRARCH in
x86_64) x86_64)
echo "i586" echo "x86_64-i586"
;; ;;
esac esac
} }
...@@ -293,17 +293,20 @@ __epm_addrepo_altlinux() ...@@ -293,17 +293,20 @@ __epm_addrepo_altlinux()
assure_exists apt-repo assure_exists apt-repo
if tasknumber "$repo" >/dev/null ; then if tasknumber "$repo" >/dev/null ; then
sudocmd_foreach "apt-repo $dryrun add" $(tasknumber "$repo") #sudocmd_foreach "apt-repo $dryrun add" $(tasknumber "$repo")
for i in $repo ; do
epm repo add "https://git.altlinux.org/tasks/$i/build/repo"
done
return return
fi fi
case "$repo" in case "$repo" in
c10f2|c10f1|c9f2|c9f1|c9) c10f2|c10f1|c9f2|c9f1|c9)
__epm_addrepo_alt_repo "$repo" __epm_addrepo_main_alt_repo "$repo"
return return
;; ;;
p11|p10|p9|p8) p11|p10|p9|p8)
__epm_addrepo_alt_repo "$repo" __epm_addrepo_main_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