libmpm

morphux C package management library
Log | Files | Refs | Submodules | README | LICENSE | git clone https://git.ne02ptzero.me/git/libmpm

commit 06eb67f4b0ec398cdec141ea65ec6b6f13f4485c
parent 0f48b528781ff0f231427928cc8a49f8cc1ddb1c
Author: Ne02ptzero <louis@ne02ptzero.me>
Date:   Sat, 11 Feb 2017 18:31:41 +0100

Merge branch 'unstable'

Diffstat:
Msrc/database.c | 1+
Atests/base.conf | 27+++++++++++++++++++++++++++
2 files changed, 28 insertions(+), 0 deletions(-)

diff --git a/src/database.c b/src/database.c @@ -193,6 +193,7 @@ package_t *sql_to_package(package_t *ptr, char *name, char *val) { if (ptr == NULL) return ptr; + /* TODO: Get all columns */ if (strcmp(name, PKG_COL_ID) == 0) { ptr->id = strtoull(val, (char **)NULL, 10); } else if (strcmp(name, PKG_COL_NAME) == 0) { diff --git a/tests/base.conf b/tests/base.conf @@ -0,0 +1,27 @@ +# MPM Basic config + +# Main section +section main { + install-mode = sources + # Threading install: + # If possible, the package manager will execute concurrent installation + thread-install = 0 +} + +# Log section +section log { + # Verbose level: + # 0: None + # 1: Basic + # 2: Informative + # 3: Debug + verbose-level = 2 + file = "/var/log/mpm.log" +} + +# Download section +section download { + main-site = pkgs.morphux.org + # Download multiple archives at the same time + thread-downloading = 0 +}