From 235a2ed2b71189c13f332ef11b067c59b84c6036 Mon Sep 17 00:00:00 2001 From: Laurent Peuch Date: Sun, 14 Jan 2018 02:59:03 +0100 Subject: [PATCH] [fix] as_dict was used for manifest comparison --- src/yunohost/utils/packages.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/yunohost/utils/packages.py b/src/yunohost/utils/packages.py index d19e6d774..3917ef563 100644 --- a/src/yunohost/utils/packages.py +++ b/src/yunohost/utils/packages.py @@ -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 )