| Age | Commit message (Collapse) | Author |
|
Added option to change mirror, tmp, staging directoryfrom the user
interface of the pkgman library. Added TRY and TRY_IFNOT macros for
better code readability.
|
|
Added url structures, cookbook, archive management to automate
the installation process of packages. Refactored main logic from
main.c to pkgman.c for cleaner seperation of concerns and future
library integration of pkgman to other projects.
|
|
Creates a write_opts argument in net_send_request() where you can
specify WRITE_OPT_MEMORY or WRITE_OPT_FILE. Modifies existing calls.
|
|
First parameter renamed to argc, and second renamed to argv to fit
the general C-style entry function convention.
|
|
The install command frees all allocated memory at the cleanup
section, and iterates over the linked list to cleanup struct pair's
key.buf and value.buf.
|
|
Iterates over the list inside um_user_data struct to free the
struct string_view buffer. This commit does not add freeing
functionality to the linked list itself.
|
|
Null-terminate all printf statements so that the output is proper.
|
|
All equalities in the codebase now uses the string_view equality
check to ensure memory-safe comparison between strings. This is
the case, unless the comparison is between two null-terminated
C-style string, in which case they will not be using sv_equal()
|
|
Added error returns to subcommands and searching utility in main()
and error codes PKGNOTFOUND and USAGE were added to err.h. The
functions will now be able to return error states to main().
|
|
The install command traverses through the linked list and checks
for the existence of package in the upstream server.
|
|
um.h and um.c is modified to accept the linked list ll_manifest
inside um_user_data struct. um_on_kv() now adds to the linked
list in parser->userdata.
|
|
On net_init failure, the application did not return any error message.
To help with error-checking, an stderr is outputted after a bad return
from net_init() on main.c
|
|
|