mirror of
https://github.com/YunoHost/yunohost.git
synced 2024-09-03 20:06:10 +02:00
[fix] Block installation and upgrade of apps with requirements
This commit is contained in:
parent
5d21b8deb7
commit
125f6f517a
1 changed files with 2 additions and 2 deletions
|
@ -324,7 +324,7 @@ def app_upgrade(auth, app=[], url=None, file=None):
|
|||
continue
|
||||
|
||||
# Check min version
|
||||
if 'min_version' in manifest and __version__ < manifest['min_version']:
|
||||
if 'min_version' in manifest or 'requirements' in manifest:
|
||||
raise MoulinetteError(errno.EPERM,
|
||||
m18n.n('app_recent_version_required', app_id))
|
||||
|
||||
|
@ -407,7 +407,7 @@ def app_install(auth, app, label=None, args=None):
|
|||
app_id = manifest['id']
|
||||
|
||||
# Check min version
|
||||
if 'min_version' in manifest and __version__ < manifest['min_version']:
|
||||
if 'min_version' in manifest or 'requirements' in manifest:
|
||||
raise MoulinetteError(errno.EPERM,
|
||||
m18n.n('app_recent_version_required', app_id))
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue