Browse Source

apt-repo

bugfixes
harshadyeola 10 years ago
parent
commit
c2f870aed7
  1. 6
      ee/core/apt_repo.py
  2. 1
      ee/core/variables.py

6
ee/core/apt_repo.py

@ -11,7 +11,7 @@ class EERepo():
"""Initialize """
pass
def add(self, repo_url=None, ppa=None):
def add(repo_url=None, ppa=None):
# TODO add repository code
if repo_url is not None:
@ -35,8 +35,10 @@ class EERepo():
print("Cannot add repo for {distro}"
.format(distro=EEVariables.ee_platform_distro))
def remove(self, repo_url=None, codename=None, repo_type=None, ppa=None):
def remove(repo_url=None):
# TODO remove repository
EEShellExec.cmd_exec("add-apt-repository -y"
"--remove '{ppa_name}'".format(ppa_name=repo_url))
pass
# if __name__ == '__main__':

1
ee/core/variables.py

@ -31,6 +31,7 @@ class EEVariables():
# Repo
ee_repo_file = "ee-repo.list"
ee_repo_file_path = ("/etc/apt/sources.list.d/" + ee_repo_file)
def __init__(self):
pass

Loading…
Cancel
Save