code: def _fulfills_version_spec(versions, oper, desired_version,
                             ignore_epoch=False):
      '''
      Returns True if any of the installed versions match the specified version,
      otherwise returns False
      '''
      cmp_func = __salt__.get('pkg.version_cmp')
      # stripping "with_origin" dict wrapper
      if salt.utils.platform.is_freebsd():
          if isinstance(versions, dict) and 'version' in versions:
              versions = versions['version']
      for ver in versions:
          if (oper == '==' and fnmatch.fnmatch(ver, desired_version)) \
                  or salt.utils.versions.compare(ver1=ver,
                                                 oper=oper,
                                                 ver2=desired_version,
                                                 cmp_func=cmp_func,
                                                 ignore_epoch=ignore_epoch):
              return True
      return Falsf _fulfills_version_spec(versions, oper, desired_version,
                             ignore_epoch=False):
      '''
      Returns True if any of the installed versions match the specified version,
      otherwise returns False
      '''
      cmp_func = __salt__.get('pkg.version_cmp')
      # stripping "with_origin" dict wrapper
      if salt.utils.platform.is_freebsd():
          if isinstance(versions, dict) and 'version' in versions:
              versions = versions['version']
      for ver in versions:
          if (oper == '==' and fnmatch.fnmatch(ver, desired_version)) \
                  or salt.utils.versions.compare(ver1=ver,
                                                 oper=oper,
                                                 ver2=desired_version,
                                                 cmp_func=cmp_func,
                                                 ignore_epoch=ignore_epoch):
              return True
      return False
docs: Returns True if any of the installed versions match the specified version,
      otherwise returns False