summaryrefslogtreecommitdiff
path: root/src/lua-apk.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/lua-apk.c')
-rw-r--r--src/lua-apk.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/lua-apk.c b/src/lua-apk.c
index 16bd734..28eee61 100644
--- a/src/lua-apk.c
+++ b/src/lua-apk.c
@@ -226,10 +226,9 @@ static int Papk_exists(lua_State *L)
if (pkg == NULL)
goto ret_nil;
- if (!apk_dep_is_materialized_or_provided(&dep, pkg))
- goto ret_nil;
+ if (apk_dep_analyze(&dep, pkg) & APK_DEP_SATISFIES)
+ return push_package(L, pkg);
- return push_package(L, pkg);
ret_nil:
lua_pushnil(L);
return 1;