From 5b02400b268e4e867a30cd76821ff7139502089e Mon Sep 17 00:00:00 2001 From: Timo Teräs Date: Sat, 15 Jun 2013 19:47:01 +0300 Subject: lua: use apk_dep_analyze and remove the now unused apk_dep_is_materialized_or_provided which was superceded by apk_dep_analyze. --- src/lua-apk.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'src/lua-apk.c') 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; -- cgit v1.2.3-60-g2f50