meta_find_pkg pattern var
meta_find_pkg_first pattern var
meta_find_pkg_unique pattern var
meta_find_pkg_glob pattern var
meta_find_pkg_glob_first pattern var
meta_find_pkg_glob_unique pattern var
meta_find_pkg_noglob pattern var
meta_find_pkg_noglob_first pattern var
meta_find_pkg_noglob_unique pattern var
meta_find_pkg searches for installed packages in database $ADM_DIR with the given pattern. If pattern starts with a /, it is currently considered as a pattern with a globbing * at the end(the behaviour will change in future) and meta_find_pkg_glob is called.Otherwise, meta_find_pkg_noglob is called.
meta_find_pkg_first is like meta_find_pkg but it calls meta_find_pkg_glob_first and meta_find_pkg_noglob_first instead with the aim to store the first among many matches.
meta_find_pkg_unique is like meta_find_pkg but it calls meta_find_pkg_glob_unique and meta_find_pkg_noglob_unique instead with the aim to store a match only if a unique/single match is found.
meta_find_pkg_glob searches for packages matching pattern with a globbing * at the end and stores all matches in given array var.
meta_find_pkg_glob_first is like meta_find_pkg_glob but it stores the first among various matches in the given var.
meta_find_pkg_glob_unique is like meta_find_pkg_glob but it stores the a matched package name only if it was the only match found.
meta_find_pkg_noglob searches the database for a package matching the pattern completely.It should match here for a package with entire basename specified or for old style package name.If found, the var is set to the name of the package.If not found, the pattern is considered as a package name with the version,architecture and build number removed.The pattern is then matched for installed package names which may match more than one package name in case more than one version for the same package was installed.
meta_find_pkg_noglob_first is like meta_find_pkg_noglob but it stores only first among all matches in case more than one match is found.
meta_find_pkg_noglob_unique is like meta_find_pkg_noglob but it stores the a matched package name only if it was the only match found.
0 success
1 no match found
one match is found