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;
|
||||
}
|
||||
|
||||
if ((root->flags & PKG_PROPF_VIRTUAL) && (flags & PKGF_SKIP_ROOT_VIRTUAL))
|
||||
return eflags;
|
||||
|
||||
if (pkg_traverse_func != NULL)
|
||||
pkg_traverse_func(root, data);
|
||||
|
||||
|
|
Loading…
Reference in New Issue