Commit 803247e3 authored by Vitaly Lipatov's avatar Vitaly Lipatov

apt-dpkg: implement addrepo/removerepo

parent 904bdd3e
......@@ -97,7 +97,15 @@ case $DISTRNAME in
esac
case $PMTYPE in
apt-dpkg|aptitude-dpkg)
apt-dpkg)
assure_exists apt-add-repository software-properties-common
if echo "$repo" | grep -q "https://" ; then
assure_exists apt-transport-https
fi
apt-add-repository "$repo"
info "Check file /etc/apt/sources.list if needed"
;;
aptitude-dpkg)
info "You need manually add repo to /etc/apt/sources.list (TODO)"
;;
yum-rpm)
......
......@@ -63,7 +63,12 @@ case $DISTRNAME in
esac;
case $PMTYPE in
apt-dpkg|aptitude-dpkg)
apt-dpkg)
assure_exists apt-add-repository software-properties-common
apt-add-repository --remove "$repo"
info "Check file /etc/apt/sources.list if needed"
;;
aptitude-dpkg)
info "You need remove repo from /etc/apt/sources.list"
;;
yum-rpm)
......
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