]> git.ipfire.org Git - pakfire.git/log
pakfire.git
7 months agorepo: Free scanned archives
Michael Tremer [Fri, 25 Oct 2024 12:39:17 +0000 (12:39 +0000)] 
repo: Free scanned archives

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
7 months agopackager: Refactor how we read metadata from the file system
Michael Tremer [Fri, 25 Oct 2024 11:47:04 +0000 (11:47 +0000)] 
packager: Refactor how we read metadata from the file system

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
7 months agofile: Simplify creating new file objects
Michael Tremer [Fri, 25 Oct 2024 11:35:41 +0000 (11:35 +0000)] 
file: Simplify creating new file objects

The create function will now take the path relative to the Pakfire
instance. It will also automatically compute the absolute path.

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
7 months agopath: Move pakfire_path_is_absolute to the path library
Michael Tremer [Fri, 25 Oct 2024 11:28:17 +0000 (11:28 +0000)] 
path: Move pakfire_path_is_absolute to the path library

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
7 months agofile: Add functions to store a file descriptor
Michael Tremer [Fri, 25 Oct 2024 11:07:42 +0000 (11:07 +0000)] 
file: Add functions to store a file descriptor

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
7 months agofilelist: Change walk callback to refer to the context
Michael Tremer [Fri, 25 Oct 2024 10:16:19 +0000 (10:16 +0000)] 
filelist: Change walk callback to refer to the context

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
7 months agofilelist: Remove the legacy logger and some mild refactoring
Michael Tremer [Fri, 25 Oct 2024 09:59:50 +0000 (09:59 +0000)] 
filelist: Remove the legacy logger and some mild refactoring

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
7 months agorepo: Refactor scanning for archives
Michael Tremer [Fri, 25 Oct 2024 09:52:36 +0000 (09:52 +0000)] 
repo: Refactor scanning for archives

It does not make too much sense to (ab)use the filelist object because
it depends on so many other things and makes the code unnecessarily
complicated.

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
7 months agoFHS: Ensure the checked path is absolute
Michael Tremer [Fri, 25 Oct 2024 09:25:00 +0000 (09:25 +0000)] 
FHS: Ensure the checked path is absolute

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
7 months agopath: Add function to make a path absolute
Michael Tremer [Fri, 25 Oct 2024 09:24:38 +0000 (09:24 +0000)] 
path: Add function to make a path absolute

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
7 months agolinter: Seal the file after reading it into memory
Michael Tremer [Fri, 25 Oct 2024 08:34:55 +0000 (08:34 +0000)] 
linter: Seal the file after reading it into memory

This avoids that something (either intentionally or unintentionally) can
be changed when the file is being analyzed.

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
7 months agolinter: Read the payload into memory
Michael Tremer [Thu, 24 Oct 2024 16:52:02 +0000 (16:52 +0000)] 
linter: Read the payload into memory

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
7 months agolinter: Run FHS checks on binary packages
Michael Tremer [Thu, 24 Oct 2024 15:42:37 +0000 (15:42 +0000)] 
linter: Run FHS checks on binary packages

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
7 months agoFHS: Return a bitmap with any issues
Michael Tremer [Thu, 24 Oct 2024 15:41:58 +0000 (15:41 +0000)] 
FHS: Return a bitmap with any issues

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
7 months agoprogress: Don't return an error if there is nothing to update
Michael Tremer [Thu, 24 Oct 2024 15:39:19 +0000 (15:39 +0000)] 
progress: Don't return an error if there is nothing to update

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
7 months agoFHS: Anchor on the context
Michael Tremer [Thu, 24 Oct 2024 15:14:04 +0000 (15:14 +0000)] 
FHS: Anchor on the context

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
7 months agojenkins: Remove broken branch check
Michael Tremer [Thu, 24 Oct 2024 13:00:47 +0000 (13:00 +0000)] 
jenkins: Remove broken branch check

This does not seem to work, so we remove it for now.

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
7 months agologging: Drop syslog-compatibility option
Michael Tremer [Thu, 24 Oct 2024 12:45:56 +0000 (12:45 +0000)] 
logging: Drop syslog-compatibility option

It is no longer possible to build Pakfire without systemd and so we
don't need to carry around code that cannot be used.

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
7 months agojenkins: Run Clang Static Analyzer on Debian Trixie
Michael Tremer [Thu, 24 Oct 2024 12:41:59 +0000 (12:41 +0000)] 
jenkins: Run Clang Static Analyzer on Debian Trixie

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
7 months agojenkins: Add LCOV pass and build Debian packages
Michael Tremer [Wed, 23 Oct 2024 12:43:52 +0000 (12:43 +0000)] 
jenkins: Add LCOV pass and build Debian packages

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
7 months agodebian: Fix systemd unit directory path
Michael Tremer [Wed, 23 Oct 2024 16:39:30 +0000 (16:39 +0000)] 
debian: Fix systemd unit directory path

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
7 months agoconfigure: Don't try to autodetect the systemd unit directory
Michael Tremer [Wed, 23 Oct 2024 16:34:49 +0000 (16:34 +0000)] 
configure: Don't try to autodetect the systemd unit directory

This no longer works on Debian Trixie and so on and I don't think there
is any reason why we should not hard-code this.

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
7 months agodebian: Add some files to create packages for Debian
Michael Tremer [Wed, 23 Oct 2024 15:25:46 +0000 (15:25 +0000)] 
debian: Add some files to create packages for Debian

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
7 months agoutil: Use our custom realloc function everywhere else, too
Michael Tremer [Wed, 23 Oct 2024 11:57:35 +0000 (11:57 +0000)] 
util: Use our custom realloc function everywhere else, too

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
7 months agoutil: Free pointer if it could not be reallocated
Michael Tremer [Wed, 23 Oct 2024 11:54:50 +0000 (11:54 +0000)] 
util: Free pointer if it could not be reallocated

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
7 months agosnapshot: Ensure that pointer it always reset
Michael Tremer [Wed, 23 Oct 2024 11:35:38 +0000 (11:35 +0000)] 
snapshot: Ensure that pointer it always reset

Even if something else keeps holding a reference to the snapshot.

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
7 months agoxfer: Sanitise format strings
Michael Tremer [Wed, 23 Oct 2024 11:24:35 +0000 (11:24 +0000)] 
xfer: Sanitise format strings

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
7 months agopackage: Initialize r
Michael Tremer [Wed, 23 Oct 2024 11:15:48 +0000 (11:15 +0000)] 
package: Initialize r

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
7 months agocli: progress: Remove another unused function
Michael Tremer [Wed, 23 Oct 2024 11:14:23 +0000 (11:14 +0000)] 
cli: progress: Remove another unused function

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
7 months agojenkins: Don't build for AlmaLinux 9 any more
Michael Tremer [Wed, 23 Oct 2024 11:08:51 +0000 (11:08 +0000)] 
jenkins: Don't build for AlmaLinux 9 any more

AlmaLinux does not support the new mount API and we currently don't
really have a user for Pakfire on this platform.

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
7 months agojob: Sanitise format strings when creating xfers
Michael Tremer [Wed, 23 Oct 2024 11:07:13 +0000 (11:07 +0000)] 
job: Sanitise format strings when creating xfers

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
7 months agojail: Make sure argv is always set
Michael Tremer [Wed, 23 Oct 2024 10:58:46 +0000 (10:58 +0000)] 
jail: Make sure argv is always set

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
7 months agocli: progress: Remove unused function
Michael Tremer [Wed, 23 Oct 2024 10:53:03 +0000 (10:53 +0000)] 
cli: progress: Remove unused function

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
7 months agoconfigure: Check for the new mount API
Michael Tremer [Wed, 23 Oct 2024 10:52:52 +0000 (10:52 +0000)] 
configure: Check for the new mount API

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
7 months agodaemon: Sanitise format strings when creating xfers
Michael Tremer [Wed, 23 Oct 2024 10:44:59 +0000 (10:44 +0000)] 
daemon: Sanitise format strings when creating xfers

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
7 months agobuildservice: Don't count packages
Michael Tremer [Wed, 23 Oct 2024 10:40:42 +0000 (10:40 +0000)] 
buildservice: Don't count packages

I don't know why we are doing this...

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
7 months agojail: Return the correct return code on errors
Michael Tremer [Wed, 23 Oct 2024 10:38:39 +0000 (10:38 +0000)] 
jail: Return the correct return code on errors

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
7 months agojob: Remove unused variable
Michael Tremer [Wed, 23 Oct 2024 10:30:33 +0000 (10:30 +0000)] 
job: Remove unused variable

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
7 months agopakfire: Don't assign r when it not being read
Michael Tremer [Wed, 23 Oct 2024 10:27:06 +0000 (10:27 +0000)] 
pakfire: Don't assign r when it not being read

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
7 months agocli: Mark the assertion function to not return
Michael Tremer [Wed, 23 Oct 2024 10:24:07 +0000 (10:24 +0000)] 
cli: Mark the assertion function to not return

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
7 months agocli: version: Update to new-style function
Michael Tremer [Wed, 23 Oct 2024 10:23:51 +0000 (10:23 +0000)] 
cli: version: Update to new-style function

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
7 months agorepo: Sanitise format strings when creating xfers
Michael Tremer [Wed, 23 Oct 2024 10:14:27 +0000 (10:14 +0000)] 
repo: Sanitise format strings when creating xfers

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
7 months agokey: Have pakfire_key_unref return a pointer
Michael Tremer [Tue, 22 Oct 2024 15:20:03 +0000 (15:20 +0000)] 
key: Have pakfire_key_unref return a pointer

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
7 months agodist: Sanitize format strings when creating an xfer
Michael Tremer [Tue, 22 Oct 2024 16:40:46 +0000 (16:40 +0000)] 
dist: Sanitize format strings when creating an xfer

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
7 months agocli: progressbar: Remove the elements array
Michael Tremer [Tue, 22 Oct 2024 16:35:25 +0000 (16:35 +0000)] 
cli: progressbar: Remove the elements array

This was a dynamically allocated array which was difficult to track as
it was filled in two passes.

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
7 months agopackager: Initialize tmppath
Michael Tremer [Tue, 22 Oct 2024 16:03:03 +0000 (16:03 +0000)] 
packager: Initialize tmppath

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
7 months agoarch: Initialize interpreter
Michael Tremer [Tue, 22 Oct 2024 16:00:33 +0000 (16:00 +0000)] 
arch: Initialize interpreter

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
7 months agobuildservice: Sanitise format strings when creating xfers
Michael Tremer [Tue, 22 Oct 2024 15:50:59 +0000 (15:50 +0000)] 
buildservice: Sanitise format strings when creating xfers

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
7 months agosolutions: Initialize elements
Michael Tremer [Tue, 22 Oct 2024 15:47:41 +0000 (15:47 +0000)] 
solutions: Initialize elements

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
7 months agoarchive: Check if we actually really absolutely have a buffer
Michael Tremer [Tue, 22 Oct 2024 15:40:10 +0000 (15:40 +0000)] 
archive: Check if we actually really absolutely have a buffer

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
7 months agopath: Make the static analyzer happy
Michael Tremer [Tue, 22 Oct 2024 15:37:07 +0000 (15:37 +0000)] 
path: Make the static analyzer happy

I don't see how path can be NULL here, but let's rather be safe and
check for it.

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
7 months agorepo: Check if progress could be started okay
Michael Tremer [Tue, 22 Oct 2024 15:29:52 +0000 (15:29 +0000)] 
repo: Check if progress could be started okay

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
7 months agobuild: Correct evaluate some more return codes
Michael Tremer [Tue, 22 Oct 2024 15:28:04 +0000 (15:28 +0000)] 
build: Correct evaluate some more return codes

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
7 months agodigest: Don't assign r when it is never read
Michael Tremer [Tue, 22 Oct 2024 15:23:09 +0000 (15:23 +0000)] 
digest: Don't assign r when it is never read

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
7 months agojenkins: Add a pipeline
Michael Tremer [Tue, 22 Oct 2024 15:13:08 +0000 (15:13 +0000)] 
jenkins: Add a pipeline

This is going to help us to achieve better code quality and
compatibility because we will automatically build Pakfire for a couple
of common distributions and run it through Clang's Static Analyzer.

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
7 months agostripper: Identify source files
Michael Tremer [Tue, 22 Oct 2024 09:23:34 +0000 (09:23 +0000)] 
stripper: Identify source files

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
7 months agoconfig: Avoid updating line when it is never being read back
Michael Tremer [Tue, 22 Oct 2024 15:03:14 +0000 (15:03 +0000)] 
config: Avoid updating line when it is never being read back

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
7 months agocli: daemon: Correctly catch daemon initialization errors
Michael Tremer [Tue, 22 Oct 2024 15:00:07 +0000 (15:00 +0000)] 
cli: daemon: Correctly catch daemon initialization errors

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
7 months agokey: Refactor return values
Michael Tremer [Tue, 22 Oct 2024 14:58:48 +0000 (14:58 +0000)] 
key: Refactor return values

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
7 months agopath: Fix a potential memory leak if either path is not absolute
Michael Tremer [Tue, 22 Oct 2024 14:40:06 +0000 (14:40 +0000)] 
path: Fix a potential memory leak if either path is not absolute

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
7 months agopwd: Initialize array before using it
Michael Tremer [Tue, 22 Oct 2024 14:38:53 +0000 (14:38 +0000)] 
pwd: Initialize array before using it

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
7 months agofile: Cleanup initializing files
Michael Tremer [Tue, 22 Oct 2024 14:34:46 +0000 (14:34 +0000)] 
file: Cleanup initializing files

There was a potential memory leak here if the entry could not be
allocated.

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
7 months agolibpakfire: Initialize some return values that could be undefined
Michael Tremer [Tue, 22 Oct 2024 14:26:41 +0000 (14:26 +0000)] 
libpakfire: Initialize some return values that could be undefined

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
7 months agopakfire: Align the disk reader with the writer
Michael Tremer [Tue, 22 Oct 2024 01:44:39 +0000 (01:44 +0000)] 
pakfire: Align the disk reader with the writer

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
7 months agoconfigure: Link against libdw
Michael Tremer [Tue, 22 Oct 2024 00:12:57 +0000 (00:12 +0000)] 
configure: Link against libdw

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
7 months agostripper: Find all ELF files
Michael Tremer [Tue, 22 Oct 2024 00:09:37 +0000 (00:09 +0000)] 
stripper: Find all ELF files

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
7 months agorepo: Improve return code handling
Michael Tremer [Tue, 22 Oct 2024 00:07:38 +0000 (00:07 +0000)] 
repo: Improve return code handling

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
7 months agoarchive: Fix return code if the archive could not be opened
Michael Tremer [Tue, 22 Oct 2024 00:07:12 +0000 (00:07 +0000)] 
archive: Fix return code if the archive could not be opened

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
7 months agostripper: Build scaffolding for a new stripper
Michael Tremer [Mon, 21 Oct 2024 23:48:56 +0000 (23:48 +0000)] 
stripper: Build scaffolding for a new stripper

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
7 months agolinter: Build out dummy function to scan the payload
Michael Tremer [Mon, 21 Oct 2024 18:41:39 +0000 (18:41 +0000)] 
linter: Build out dummy function to scan the payload

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
7 months agolinter: Keep a reference to Pakfire
Michael Tremer [Mon, 21 Oct 2024 18:40:55 +0000 (18:40 +0000)] 
linter: Keep a reference to Pakfire

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
7 months agoarchive: Use convenience function to open and walk through the archive
Michael Tremer [Mon, 21 Oct 2024 18:23:46 +0000 (18:23 +0000)] 
archive: Use convenience function to open and walk through the archive

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
7 months agoarchive: Log the format and compression
Michael Tremer [Mon, 21 Oct 2024 18:11:22 +0000 (18:11 +0000)] 
archive: Log the format and compression

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
7 months agoarchive: Simplify opening an archive
Michael Tremer [Mon, 21 Oct 2024 18:01:39 +0000 (18:01 +0000)] 
archive: Simplify opening an archive

There is nothing special needed now we clone the file descriptors. So
this is mainly just to make the file sticky.

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
7 months agoarchive: Fix passing error codes when opening the archive
Michael Tremer [Mon, 21 Oct 2024 17:56:34 +0000 (17:56 +0000)] 
archive: Fix passing error codes when opening the archive

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
7 months agoarchive: Simplify the walk/filter callbacks
Michael Tremer [Mon, 21 Oct 2024 17:49:23 +0000 (17:49 +0000)] 
archive: Simplify the walk/filter callbacks

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
7 months agoarchive: Cleanup loop when searching for files
Michael Tremer [Mon, 21 Oct 2024 17:38:51 +0000 (17:38 +0000)] 
archive: Cleanup loop when searching for files

This mainly removes the ugly label jump.

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
7 months agoarchive: cookie: Rename __f to f now that variable is free again
Michael Tremer [Mon, 21 Oct 2024 17:33:27 +0000 (17:33 +0000)] 
archive: cookie: Rename __f to f now that variable is free again

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
7 months agoarchive: Streamline opening and reading from the archive
Michael Tremer [Mon, 21 Oct 2024 17:31:51 +0000 (17:31 +0000)] 
archive: Streamline opening and reading from the archive

We will now always create a copy of the file descriptor so that we can
independently run mutliple operations on the same archive without
breaking anything.

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
7 months agoarchive: Fetch the writer only once
Michael Tremer [Mon, 21 Oct 2024 14:43:10 +0000 (14:43 +0000)] 
archive: Fetch the writer only once

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
7 months agoarchive: Move extraction code back to where it belongs
Michael Tremer [Mon, 21 Oct 2024 14:37:54 +0000 (14:37 +0000)] 
archive: Move extraction code back to where it belongs

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
7 months agoarchive: Remove unnecessary underscores from functions
Michael Tremer [Sun, 20 Oct 2024 10:21:12 +0000 (10:21 +0000)] 
archive: Remove unnecessary underscores from functions

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
7 months agoarchive: Minor code cleanups
Michael Tremer [Sun, 20 Oct 2024 10:19:22 +0000 (10:19 +0000)] 
archive: Minor code cleanups

No functional changes.

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
7 months agobuild: Lint the archives after build
Michael Tremer [Sat, 19 Oct 2024 15:07:22 +0000 (15:07 +0000)] 
build: Lint the archives after build

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
7 months agolinter: Check if package name contains whitespace
Michael Tremer [Sat, 19 Oct 2024 14:57:33 +0000 (14:57 +0000)] 
linter: Check if package name contains whitespace

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
7 months agolinter: Add result callback to print to the CLI
Michael Tremer [Sat, 19 Oct 2024 14:48:49 +0000 (14:48 +0000)] 
linter: Add result callback to print to the CLI

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
7 months agolinter: Make this entirely private
Michael Tremer [Sat, 19 Oct 2024 14:29:00 +0000 (14:29 +0000)] 
linter: Make this entirely private

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
7 months agolinter: Store any results
Michael Tremer [Sat, 19 Oct 2024 14:28:02 +0000 (14:28 +0000)] 
linter: Store any results

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
7 months agocli: pakfire-builder: Add command to call the linter
Michael Tremer [Sat, 19 Oct 2024 13:58:47 +0000 (13:58 +0000)] 
cli: pakfire-builder: Add command to call the linter

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
7 months agolinter: Base this on archives rather than packages
Michael Tremer [Sat, 19 Oct 2024 13:58:04 +0000 (13:58 +0000)] 
linter: Base this on archives rather than packages

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
7 months agopty: Hack to avoid lock-up when we don't have a newline
Michael Tremer [Sat, 19 Oct 2024 13:32:29 +0000 (13:32 +0000)] 
pty: Hack to avoid lock-up when we don't have a newline

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
7 months agojail: Create helper function to capture output
Michael Tremer [Sat, 19 Oct 2024 12:47:13 +0000 (12:47 +0000)] 
jail: Create helper function to capture output

That way, we can have the length as an extra argument.

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
7 months agotests: Have pipe return an error if it could not write
Michael Tremer [Sat, 19 Oct 2024 12:33:31 +0000 (12:33 +0000)] 
tests: Have pipe return an error if it could not write

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
7 months agopty: Replace any CRNL with NL when capturing the output
Michael Tremer [Sat, 19 Oct 2024 12:32:28 +0000 (12:32 +0000)] 
pty: Replace any CRNL with NL when capturing the output

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
7 months agopty: Configure like SSH does it
Michael Tremer [Sat, 19 Oct 2024 10:18:44 +0000 (10:18 +0000)] 
pty: Configure like SSH does it

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
7 months agojail: Immediately send SIGKILL when the timer has expired
Michael Tremer [Sat, 19 Oct 2024 09:49:49 +0000 (09:49 +0000)] 
jail: Immediately send SIGKILL when the timer has expired

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
7 months agojail: Turn off some broken jail tests
Michael Tremer [Sat, 19 Oct 2024 09:46:50 +0000 (09:46 +0000)] 
jail: Turn off some broken jail tests

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
7 months agotests: Try some invalid creations of Pakfire
Michael Tremer [Sat, 19 Oct 2024 09:37:01 +0000 (09:37 +0000)] 
tests: Try some invalid creations of Pakfire

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
7 months agohttpclient: Initialize like everything else
Michael Tremer [Sat, 19 Oct 2024 09:28:20 +0000 (09:28 +0000)] 
httpclient: Initialize like everything else

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
7 months agohttpclient: Keep better track of all sorts of references
Michael Tremer [Sat, 19 Oct 2024 09:27:55 +0000 (09:27 +0000)] 
httpclient: Keep better track of all sorts of references

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>