Update yunohost_app.py

This commit is contained in:
Alexis Gavoty 2013-05-30 17:47:38 +02:00
parent 9031dab386
commit 3d9d706822

View file

@ -573,7 +573,7 @@ def _install_app_dependencies(dep_dict):
""" """
if ('debian' in dep_dict) and (len(dep_dict['debian']) > 0): if ('debian' in dep_dict) and (len(dep_dict['debian']) > 0):
#os.system('apt-get update') #os.system('apt-get update')
if os.system('apt-get install "'+ '" "'.join(dep_dict['debian']) +'"') != 0: if os.system('apt-get install -y "'+ '" "'.join(dep_dict['debian']) +'"') != 0:
raise YunoHostError(1, _("Dependency installation failed: ") + dependency) raise YunoHostError(1, _("Dependency installation failed: ") + dependency)
# TODO: Install npm, pip, gem and pear dependencies # TODO: Install npm, pip, gem and pear dependencies