mirror of
https://github.com/YunoHost/yunohost.git
synced 2024-09-03 20:06:10 +02:00
[fix] as_dict was used for manifest comparison
This commit is contained in:
parent
af21d5ab0d
commit
235a2ed2b7
1 changed files with 3 additions and 2 deletions
|
@ -406,6 +406,7 @@ def get_installed_version(*pkgnames, **kwargs):
|
|||
# Retrieve options
|
||||
as_dict = kwargs.get('as_dict', False)
|
||||
strict = kwargs.get('strict', False)
|
||||
with_repo = kwargs.get('with_repo', False)
|
||||
|
||||
for pkgname in pkgnames:
|
||||
try:
|
||||
|
@ -431,7 +432,7 @@ def get_installed_version(*pkgnames, **kwargs):
|
|||
raise UninstalledPackage(pkgname)
|
||||
repo = ""
|
||||
|
||||
if as_dict:
|
||||
if with_repo:
|
||||
versions[pkgname] = {
|
||||
"version": version,
|
||||
# when we don't have component it's because it's from a local
|
||||
|
@ -461,5 +462,5 @@ def ynh_packages_version(*args, **kwargs):
|
|||
"""Return the version of each YunoHost package"""
|
||||
return get_installed_version(
|
||||
'yunohost', 'yunohost-admin', 'moulinette', 'ssowat',
|
||||
as_dict=True
|
||||
with_repo=True
|
||||
)
|
||||
|
|
Loading…
Add table
Reference in a new issue