]>
git.ipfire.org Git - pakfire.git/log
Michael Tremer [Tue, 17 Oct 2023 08:42:43 +0000 (08:42 +0000)]
tests: archive: Fix build from source
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Michael Tremer [Mon, 16 Oct 2023 17:19:09 +0000 (17:19 +0000)]
ctx: Move the OFFLINE flag into the context
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Michael Tremer [Mon, 16 Oct 2023 17:09:08 +0000 (17:09 +0000)]
downloader: Anchor the downloader to the context
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Michael Tremer [Mon, 16 Oct 2023 16:56:15 +0000 (16:56 +0000)]
progress: Anchor progress on the context
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Michael Tremer [Mon, 16 Oct 2023 16:52:57 +0000 (16:52 +0000)]
ctx: Read the configuration
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Michael Tremer [Mon, 16 Oct 2023 15:36:30 +0000 (15:36 +0000)]
pakfire: Drop the DEBUG flag which now does nothing
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Michael Tremer [Mon, 16 Oct 2023 15:33:54 +0000 (15:33 +0000)]
downloader: Split mirrors and mirrorlists into their own files
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Michael Tremer [Mon, 16 Oct 2023 15:32:40 +0000 (15:32 +0000)]
repo: Keep a reference to the context
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Michael Tremer [Mon, 16 Oct 2023 14:24:19 +0000 (14:24 +0000)]
ctx: Move pick solution callback into the context
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Michael Tremer [Mon, 16 Oct 2023 14:13:01 +0000 (14:13 +0000)]
ctx: Move the progress callback into the context
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Michael Tremer [Mon, 16 Oct 2023 14:00:28 +0000 (14:00 +0000)]
ctx: Move the confirm callback into the context
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Michael Tremer [Mon, 16 Oct 2023 10:43:59 +0000 (10:43 +0000)]
cli: Create context before setting parsing the command line
This way, we can configure the context directly instead of passing
arguments around too much.
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Michael Tremer [Mon, 16 Oct 2023 10:37:27 +0000 (10:37 +0000)]
_pakfire: Drop the old Python logging callback
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Michael Tremer [Mon, 16 Oct 2023 10:35:27 +0000 (10:35 +0000)]
_pakfire: Setup a default logging callback
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Michael Tremer [Mon, 16 Oct 2023 10:34:22 +0000 (10:34 +0000)]
logging: Fix context logging arguments
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Michael Tremer [Mon, 16 Oct 2023 10:12:37 +0000 (10:12 +0000)]
pakfire: Remove logging callback
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Michael Tremer [Mon, 16 Oct 2023 10:09:12 +0000 (10:09 +0000)]
pakfire: Remove logging stuff in favour of the context
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Michael Tremer [Mon, 16 Oct 2023 10:07:58 +0000 (10:07 +0000)]
jail: Send log stuff to the context logger
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Michael Tremer [Sun, 15 Oct 2023 15:15:03 +0000 (15:15 +0000)]
build: Send log messages to the context logger
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Michael Tremer [Sun, 15 Oct 2023 15:12:21 +0000 (15:12 +0000)]
pakfire: Add function to access context
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Michael Tremer [Sun, 15 Oct 2023 15:06:51 +0000 (15:06 +0000)]
pakfire: Pass all log messages to the context
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Michael Tremer [Sun, 15 Oct 2023 14:52:47 +0000 (14:52 +0000)]
ctx: Copy the log framework
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Michael Tremer [Sun, 15 Oct 2023 14:27:33 +0000 (14:27 +0000)]
ctx: Add a log callback
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Michael Tremer [Sun, 15 Oct 2023 14:09:29 +0000 (14:09 +0000)]
ctx: Add log level
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Michael Tremer [Sun, 15 Oct 2023 13:54:28 +0000 (13:54 +0000)]
ctx: Require the new context when creating a Pakfire instance
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Michael Tremer [Sun, 15 Oct 2023 13:31:27 +0000 (13:31 +0000)]
libpakfire: Create scaffolding for a new Pakfire context
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Michael Tremer [Sun, 15 Oct 2023 13:17:35 +0000 (13:17 +0000)]
cli: pakfire-builder: Add forgotten repo options
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Michael Tremer [Sun, 15 Oct 2023 13:17:15 +0000 (13:17 +0000)]
cli: pakfire: Move existing commands to the new parser
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Michael Tremer [Sun, 15 Oct 2023 12:52:28 +0000 (12:52 +0000)]
cli: shell: Upgrade to the new parser
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Michael Tremer [Sun, 15 Oct 2023 12:43:43 +0000 (12:43 +0000)]
cli: repolist: Upgrade to the new parser
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Michael Tremer [Sun, 15 Oct 2023 12:39:17 +0000 (12:39 +0000)]
cli: repo: Upgrade to the new parser
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Michael Tremer [Sun, 15 Oct 2023 12:24:05 +0000 (12:24 +0000)]
cli: requires: Upgrade to the new parser
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Michael Tremer [Sun, 15 Oct 2023 12:22:04 +0000 (12:22 +0000)]
cli: provides: Upgrade to the new parser
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Michael Tremer [Sun, 15 Oct 2023 12:18:55 +0000 (12:18 +0000)]
cli: search: Upgrade to the new parser
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Michael Tremer [Sun, 15 Oct 2023 11:55:50 +0000 (11:55 +0000)]
cli: info: Migrate command to the new parser
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Michael Tremer [Sun, 15 Oct 2023 11:42:19 +0000 (11:42 +0000)]
cli: image: Upgrade to the new parser
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Michael Tremer [Sun, 15 Oct 2023 11:31:03 +0000 (11:31 +0000)]
cli: dist: Upgrade to the new parser
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Michael Tremer [Sun, 15 Oct 2023 11:30:21 +0000 (11:30 +0000)]
cli: clean: Make doc string static
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Michael Tremer [Sun, 15 Oct 2023 11:20:05 +0000 (11:20 +0000)]
cli: command: Add option to min/max number of arguments
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Michael Tremer [Sun, 15 Oct 2023 11:08:14 +0000 (11:08 +0000)]
cli: commands: Move flags to the end
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Michael Tremer [Sun, 15 Oct 2023 11:07:02 +0000 (11:07 +0000)]
cli: clean: Add a doc string
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Michael Tremer [Sun, 15 Oct 2023 11:06:38 +0000 (11:06 +0000)]
cli: Always set up an (even empty) parser so we can have docs
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Michael Tremer [Sat, 14 Oct 2023 18:11:14 +0000 (18:11 +0000)]
cli: Add a doc string argument to the parser
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Michael Tremer [Sat, 14 Oct 2023 18:07:56 +0000 (18:07 +0000)]
cli: Update clean command to the new parser
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Michael Tremer [Sat, 14 Oct 2023 17:50:42 +0000 (17:50 +0000)]
cli: Completely try again...
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Michael Tremer [Sat, 14 Oct 2023 17:46:29 +0000 (17:46 +0000)]
cli: Link against libpakfire
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Michael Tremer [Sun, 8 Oct 2023 14:39:02 +0000 (14:39 +0000)]
cli: pakfire-build: Implement command line option parsing with argp
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Michael Tremer [Fri, 6 Oct 2023 16:21:54 +0000 (16:21 +0000)]
path: Correctly set and return absolute paths
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Michael Tremer [Fri, 6 Oct 2023 15:17:25 +0000 (15:17 +0000)]
cgroup: Make the BPF log buffer statically allocated again
This might potentially make this non-thread-safe, but without
loading the BPF program crashes immediately.
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Michael Tremer [Fri, 6 Oct 2023 15:00:25 +0000 (15:00 +0000)]
archive: read: Limit the maximum number of symlinks to follow
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Michael Tremer [Fri, 6 Oct 2023 14:55:55 +0000 (14:55 +0000)]
archive: read: Add option to follow symlinks
This is useful when we want to read some data from an archive which
requires us to follow a symlink.
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Michael Tremer [Fri, 6 Oct 2023 14:55:19 +0000 (14:55 +0000)]
archive: Change how we search for realtive paths in archives
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Michael Tremer [Fri, 6 Oct 2023 14:53:57 +0000 (14:53 +0000)]
compress: Add AGAIN return code to restart walking through an archive
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Michael Tremer [Fri, 6 Oct 2023 14:37:02 +0000 (14:37 +0000)]
util: Fix double free in base64 encoder
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Michael Tremer [Fri, 6 Oct 2023 14:04:04 +0000 (14:04 +0000)]
path: Add merge function to join two paths together
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Michael Tremer [Fri, 6 Oct 2023 13:56:50 +0000 (13:56 +0000)]
path: Rename join -> append
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Michael Tremer [Fri, 6 Oct 2023 13:50:44 +0000 (13:50 +0000)]
path: Implement joining two paths
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Michael Tremer [Fri, 6 Oct 2023 13:23:07 +0000 (13:23 +0000)]
string: Include required headers
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Michael Tremer [Fri, 6 Oct 2023 13:22:46 +0000 (13:22 +0000)]
path: Add a simple path library to normalize paths
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Michael Tremer [Thu, 5 Oct 2023 13:17:27 +0000 (13:17 +0000)]
packager: Drop helper function to determine the hostname
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Michael Tremer [Thu, 5 Oct 2023 10:31:59 +0000 (10:31 +0000)]
cgroup: Do not use TLS for buffer that is longer than one page
There seems to be a compiler bug that causes memory corruption in any
spawned threads. This used to materialize mostly in downloading files
when cURL spawned a thread to call the glibc resolver.
See: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81142
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Michael Tremer [Thu, 5 Oct 2023 10:00:20 +0000 (10:00 +0000)]
configure: Enable lots more compiler warnings
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Michael Tremer [Thu, 5 Oct 2023 09:59:29 +0000 (09:59 +0000)]
transaction: Drop unused set status callback
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Michael Tremer [Thu, 5 Oct 2023 09:58:25 +0000 (09:58 +0000)]
libpakfire: Initialize strings correctly
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Michael Tremer [Thu, 5 Oct 2023 09:57:29 +0000 (09:57 +0000)]
file: Fix wrong operator to check if flag is set
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Michael Tremer [Thu, 5 Oct 2023 09:56:55 +0000 (09:56 +0000)]
parser: Refactor join function to avoid format errors
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Michael Tremer [Wed, 4 Oct 2023 17:12:17 +0000 (17:12 +0000)]
transaction: Fix truncation of integer when showing transaction
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Michael Tremer [Wed, 4 Oct 2023 17:11:47 +0000 (17:11 +0000)]
Fix any issues with falling through a switch statement
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Michael Tremer [Wed, 4 Oct 2023 17:10:28 +0000 (17:10 +0000)]
string: Silence a couple of format error warnings
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Michael Tremer [Wed, 4 Oct 2023 17:07:30 +0000 (17:07 +0000)]
Fix any incorrect format arguments throughout the code base
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Michael Tremer [Wed, 4 Oct 2023 16:57:37 +0000 (16:57 +0000)]
Make old-style functions new-style functions
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Michael Tremer [Wed, 4 Oct 2023 16:55:11 +0000 (16:55 +0000)]
Makefile: Do not try to include from non-existant directory
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Michael Tremer [Wed, 4 Oct 2023 16:08:01 +0000 (16:08 +0000)]
string: inline must be the first word in a declaration
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Michael Tremer [Wed, 4 Oct 2023 16:03:29 +0000 (16:03 +0000)]
parser: Break if we could not allocate memory on dump
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Michael Tremer [Wed, 4 Oct 2023 16:02:44 +0000 (16:02 +0000)]
parser: grammar: Ensure we always free a dumped parser
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Michael Tremer [Wed, 4 Oct 2023 16:02:21 +0000 (16:02 +0000)]
parser: scanner: Abort if we could not allocate memory
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Michael Tremer [Wed, 4 Oct 2023 15:34:54 +0000 (15:34 +0000)]
tests: string: Free string after the replace test
Generally, we do not free stuff in the tests (because we don't care
about any leaks), but I wanted to see a clear valgrind result on this
one...
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Michael Tremer [Mon, 2 Oct 2023 17:19:34 +0000 (17:19 +0000)]
parser: Initialize some more variables in the grammar
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Michael Tremer [Mon, 2 Oct 2023 17:18:11 +0000 (17:18 +0000)]
parser: Initialize some more variables
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Michael Tremer [Mon, 2 Oct 2023 17:15:36 +0000 (17:15 +0000)]
parser: Leak less memory
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Michael Tremer [Mon, 2 Oct 2023 17:14:52 +0000 (17:14 +0000)]
downloader: Drop old functions
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Michael Tremer [Mon, 2 Oct 2023 17:13:25 +0000 (17:13 +0000)]
dist: Refactor downloading sources
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Michael Tremer [Mon, 2 Oct 2023 17:11:27 +0000 (17:11 +0000)]
string: Remove unused chrcnt function
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Michael Tremer [Mon, 2 Oct 2023 16:14:56 +0000 (16:14 +0000)]
downloader: Initialize utime
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Michael Tremer [Mon, 2 Oct 2023 16:11:39 +0000 (16:11 +0000)]
strings: Remove split function
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Michael Tremer [Mon, 2 Oct 2023 16:09:26 +0000 (16:09 +0000)]
package: Split descriptions using strtok()
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Michael Tremer [Mon, 2 Oct 2023 16:03:42 +0000 (16:03 +0000)]
parser: Drop pakfire_parser_get_split
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Michael Tremer [Mon, 2 Oct 2023 16:03:14 +0000 (16:03 +0000)]
dist: No longer use pakfire_parser_get_split()
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Michael Tremer [Mon, 2 Oct 2023 15:53:09 +0000 (15:53 +0000)]
string: Refactor replacement function once again
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Michael Tremer [Mon, 2 Oct 2023 15:10:32 +0000 (15:10 +0000)]
downloader: Fail if we did not get a schema
It is quite unlikely that we are ending up here, but if we do, the
download with fail cleanly.
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Michael Tremer [Mon, 2 Oct 2023 15:09:52 +0000 (15:09 +0000)]
mount: Do not call mount with an empty filesystem type
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Michael Tremer [Mon, 2 Oct 2023 10:25:52 +0000 (10:25 +0000)]
dist: Drop our own source mirror
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Michael Tremer [Mon, 2 Oct 2023 10:17:36 +0000 (10:17 +0000)]
downloader: This is the beginning of a rather large rewrite
The downloader code has become very complicated because we have large
functions that perform everything at once.
This patch splits a lot of functionality into smaller steps which are
easier to handle, allow better expansion and so on. You know?
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Michael Tremer [Mon, 2 Oct 2023 10:14:56 +0000 (10:14 +0000)]
progress: Fix division by zero when calculating ETA
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Michael Tremer [Mon, 2 Oct 2023 10:14:00 +0000 (10:14 +0000)]
progress: Implement child progress
This can be used if we need to propagate progress to an upstream
progress indicator.
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Michael Tremer [Mon, 2 Oct 2023 10:12:06 +0000 (10:12 +0000)]
cli: progressbar: Increment the size of the bar buffer
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Michael Tremer [Sun, 1 Oct 2023 12:37:57 +0000 (12:37 +0000)]
cli: progressbar: Dynamically allocate all buffers
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Michael Tremer [Sun, 1 Oct 2023 12:29:03 +0000 (12:29 +0000)]
progress: Set a default start action
If some application is not using the progress feature, at least we have
a log message about what is happening...
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Michael Tremer [Sun, 1 Oct 2023 11:54:16 +0000 (11:54 +0000)]
cli: pakfire: Enable progressbar
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Michael Tremer [Sun, 1 Oct 2023 11:52:10 +0000 (11:52 +0000)]
progressbar: Drop old implementation
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>