diff --git a/tools/__init__.py b/tools/__init__.py index 004a49cc7..1844cd007 100644 --- a/tools/__init__.py +++ b/tools/__init__.py @@ -479,7 +479,8 @@ def get_installed_version(self): installed_package_string = data[0]["dist_name"] else: installed_package_string = data[0] - package_info_re = re.compile(r"(?P.*)-(?P.*)-(?P.*)") + # regex to match package specs in the format bioconda::biopython-1.68-py35_0 + package_info_re = re.compile(r"(?:(?P.*)::)?(?P.*)-(?P.*)-(?P.*)") matches = package_info_re.match(installed_package_string) if matches: installed_version = matches.group("version")