Sync charm-helpers
This commit is contained in:
parent
c7c06216fa
commit
00d2cefb30
hooks/charmhelpers/contrib
@ -604,9 +604,9 @@ def _git_clone_and_install_single(repo, branch, parent_dir, http_proxy,
|
||||
|
||||
juju_log('Installing git repo from dir: {}'.format(repo_dir))
|
||||
if http_proxy:
|
||||
pip_install(repo_dir, ignore=True, proxy=http_proxy)
|
||||
pip_install(repo_dir, proxy=http_proxy)
|
||||
else:
|
||||
pip_install(repo_dir, ignore=True)
|
||||
pip_install(repo_dir)
|
||||
|
||||
return repo_dir
|
||||
|
||||
|
@ -51,7 +51,7 @@ def pip_install_requirements(requirements, **options):
|
||||
pip_execute(command)
|
||||
|
||||
|
||||
def pip_install(package, fatal=False, upgrade=False, ignore=False, **options):
|
||||
def pip_install(package, fatal=False, upgrade=False, **options):
|
||||
"""Install a python package"""
|
||||
command = ["install"]
|
||||
|
||||
@ -62,9 +62,6 @@ def pip_install(package, fatal=False, upgrade=False, ignore=False, **options):
|
||||
if upgrade:
|
||||
command.append('--upgrade')
|
||||
|
||||
if ignore:
|
||||
command.append('--ignore-installed')
|
||||
|
||||
if isinstance(package, list):
|
||||
command.extend(package)
|
||||
else:
|
||||
|
Loading…
x
Reference in New Issue
Block a user