from .obj import BaseObjectError
from .obj import BaseObject
-__version__ = '0.6.1'
+__version__ = '0.6.2'
LOG = logging.getLogger(__name__)
return res
+ # -------------------------------------------------------------------------
+ def local_version_output(self, environment):
+
+ if environment not in self.local_versions and environment not in self.expected_versions:
+ return '~'
+
+ if environment in self.expected_versions:
+ expected = self.expected_versions[environment]
+ local_version = '~'
+ if environment in self.local_versions:
+ local_version = self.local_versions[environment]
+ if expected == local_version:
+ return expected
+ return "{e} => {l}".format(e=expected, l=local_version)
+ if environment in self.local_versions:
+ local_version = self.local_versions[environment]
+ else:
+ local_version = '~'
+ return "~ => {}".format(local_version)
+
# -------------------------------------------------------------------------
def merge_in(self, other):
module_info.forge_version = data['forge_version']
if 'forge_avail' in data:
- module_info._full_name_orig = data['forge_avail']
+ module_info._forge_avail = data['forge_avail']
if 'forge_homepage_url' in data:
module_info.forge_homepage_url = data['forge_homepage_url']