pkg: add PKGF_SKIP_ROOT_VIRTUAL for some queries like --variable
parent
e104def516
commit
f663f7922c
3
pkg.c
3
pkg.c
|
@ -594,6 +594,9 @@ pkg_traverse(pkg_t *root,
|
||||||
return eflags;
|
return eflags;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if ((root->flags & PKG_PROPF_VIRTUAL) && (flags & PKGF_SKIP_ROOT_VIRTUAL))
|
||||||
|
return eflags;
|
||||||
|
|
||||||
if (pkg_traverse_func != NULL)
|
if (pkg_traverse_func != NULL)
|
||||||
pkg_traverse_func(root, data);
|
pkg_traverse_func(root, data);
|
||||||
|
|
||||||
|
|
1
pkg.h
1
pkg.h
|
@ -124,6 +124,7 @@ struct pkg_ {
|
||||||
#define PKGF_SEARCH_PRIVATE 0x1
|
#define PKGF_SEARCH_PRIVATE 0x1
|
||||||
#define PKGF_ENV_ONLY 0x2
|
#define PKGF_ENV_ONLY 0x2
|
||||||
#define PKGF_NO_UNINSTALLED 0x4
|
#define PKGF_NO_UNINSTALLED 0x4
|
||||||
|
#define PKGF_SKIP_ROOT_VIRTUAL 0x8
|
||||||
|
|
||||||
#define PKG_ERRF_OK 0x0
|
#define PKG_ERRF_OK 0x0
|
||||||
#define PKG_ERRF_PACKAGE_NOT_FOUND 0x1
|
#define PKG_ERRF_PACKAGE_NOT_FOUND 0x1
|
||||||
|
|
Loading…
Reference in New Issue