summaryrefslogtreecommitdiff
path: root/src/lua-apk.c
AgeCommit message (Collapse)AuthorFilesLines
2021-12-14lua: remove features.hAriadne Conill1-1/+0
features.h is a GNU-specific header, and is not required for POSIX-compatible code macOS does not provide features.h ref #10794
2020-05-19make the atom functions not use global stateTimo Teräs1-1/+0
This greatly helps with memory management on applications that may want to daemonize and open/close database several times. Also the lifetime and "owner" of memory for all data is now explicitly bound to owning struct apk_database, which might be helpful when writing language bindings. As side effect, the interned "atoms" are unique only within what apk_database, so comparing packages from different apk_database may not work as expected. Fixes #10697
2020-05-07use SPDX-License-Identifier in source filesTBK1-0/+9
2020-02-04remove apk_time() as it is causing problems with shared objectsTimo Teräs1-5/+0
Instead, to make sure test mode produces same output, redefine time() for the test mode binary. Reverts parts of 0b82bcc53e60.
2019-12-30lua: fix build and update to lua5.3Timo Teräs1-15/+20
Fixes #8360
2017-04-28db: separate init from openKaarle Ritvanen1-0/+1
2016-07-22lua: remove unused reg_apk_db_meta_methodsTimo Teräs1-5/+0
2013-06-28various: applet help text and comment fixesDubiousjim1-1/+1
Acked-by: Natanael Copa <ncopa@alpinelinux.org>
2013-06-15lua: use apk_dep_analyzeTimo Teräs1-3/+2
and remove the now unused apk_dep_is_materialized_or_provided which was superceded by apk_dep_analyze.
2013-06-13lua: support for lua 5.2Natanael Copa1-15/+32
2012-02-28lua: fix bindings, and build by defaultTimo Teräs1-10/+3
2012-01-17lua: fix compile errorTimo Teräs1-1/+1
2012-01-12db: support line feed as 'world' dependency separatorTimo Teräs1-1/+1
* default writing the world with spaces if a space is found (for backwards compatibility) for now
2011-10-20lua: adapt to new APINatanael Copa1-3/+4
Use new apk_blob_pull_dep instead of the old apk_dep_from_blob
2011-09-15lua: implement iterator with installed packagesNatanael Copa1-5/+43
2011-09-15lua: implement exists/is_installedNatanael Copa1-0/+33
Tests whether given package string is installed
2011-09-15lua: init fixesNatanael Copa1-0/+3
- call apk_atom_init() - if no open flag is specified, then default to read-only.
2011-09-15lua: implement who_ownsNatanael Copa1-0/+41
2011-09-15lua: open and close dbNatanael Copa1-2/+50
2011-09-15lua: initial db_openNatanael Copa1-1/+75
so far we just parse the db options
2011-09-14lua: remove unneeded global varsNatanael Copa1-4/+0
2011-09-14lua: typecast apk blob lenNatanael Copa1-6/+13
So we can build with -Werror
2010-06-11lua: initial lua moduleNatanael Copa1-0/+64