def __call__(self, pkg_name, pkg_version):
        '''
        Convert a string wildcard to a zypper query.

        :param pkg_name:
        :param pkg_version:
        :return:
        '''
        if pkg_version:
            self.name = pkg_name
            self._set_version(pkg_version)  # Dissects possible operator
            versions = sorted([LooseVersion(vrs)
                               for vrs in self._get_scope_versions(self._get_available_versions())])
            return versions and '{0}{1}'.format(self._op or '', versions[-1]) or None
def __call__ ( self , pkg_name , pkg_version ) : if pkg_version : self . name = pkg_name self . _set_version ( pkg_version ) versions = sorted ( [ LooseVersion ( vrs ) for vrs in self . _get_scope_versions ( self . _get_available_versions ( ) ) ] ) return versions and '{0}{1}' . format ( self . _op or '' , versions [ - 1 ] ) or None
Convert a string wildcard to a zypper query.

        :param pkg_name:
        :param pkg_version:
        :return: