lua: adapt to new API
Use new apk_blob_pull_dep instead of the old apk_dep_from_blobcute-signatures
parent
7622ccf49f
commit
bd0242e1de
|
@ -204,10 +204,11 @@ static int Papk_exists(lua_State *L)
|
||||||
struct apk_dependency dep;
|
struct apk_dependency dep;
|
||||||
struct apk_name *name;
|
struct apk_name *name;
|
||||||
struct apk_package *pkg;
|
struct apk_package *pkg;
|
||||||
int i, r;
|
int i;
|
||||||
|
apk_blob_t blob = APK_BLOB_STR(depstr);
|
||||||
|
apk_blob_pull_dep(&blob, db, &dep);
|
||||||
|
|
||||||
r = apk_dep_from_blob(&dep, db, APK_BLOB_STR(depstr));
|
if (APK_BLOB_IS_NULL(blob))
|
||||||
if (r != 0)
|
|
||||||
goto ret_nil;
|
goto ret_nil;
|
||||||
|
|
||||||
name = dep.name;
|
name = dep.name;
|
||||||
|
|
Loading…
Reference in New Issue