Install python-packaging as dependance

This commit is contained in:
Josué Tille 2020-05-03 19:56:14 +02:00
parent 95b7885890
commit 8d2bde84ec
No known key found for this signature in database
GPG key ID: 716A6C99B04194EF
2 changed files with 1 additions and 7 deletions

2
debian/control vendored
View file

@ -13,7 +13,7 @@ Architecture: all
Depends: ${python:Depends}, ${misc:Depends}
, moulinette (>= 3.7), ssowat (>= 3.7)
, python-psutil, python-requests, python-dnspython, python-openssl
, python-apt, python-miniupnpc, python-dbus, python-jinja2
, python-apt, python-miniupnpc, python-dbus, python-jinja2, python-packaging,
, python-toml
, apt, apt-transport-https
, nginx, nginx-extras (>=1.6.2)

View file

@ -183,9 +183,6 @@ def app_info(app, full=False):
def _app_upgradable(app_infos):
# python-pkg-resources contains the packaging module
# yunohost depends of python-jinja2 and python-jinja2 depends of python-pkg-resources
# so packaging module should be available on all yunohost instances
from packaging import version
# Determine upgradability
@ -467,9 +464,6 @@ def app_upgrade(app=[], url=None, file=None, force=False):
url -- Git url to fetch for upgrade
"""
# python-pkg-resources contains the packaging module
# yunohost depends of python-jinja2 and python-jinja2 depends of python-pkg-resources
# so packaging module should be available on all yunohost instances
from packaging import version
from yunohost.hook import hook_add, hook_remove, hook_exec, hook_callback
from yunohost.permission import permission_sync_to_user