Age | Commit message (Collapse) | Author | Files | Lines |
|
apk_fileinfo_get() special cases symlink digest calculation.
Convert apk_fsdir_ops.file_digest to .file_info to fix symlink
change detection.
fixes #10853
|
|
fixes #10838
|
|
fixes #10835
|
|
|
|
fixes #10834
|
|
Previously this would result in post-upgrade scripts not being
written at all.
|
|
|
|
|
|
|
|
|
|
for most cases, this replaces APK_DEFAULT_ARCH. if apk-tools is built without
a configured abi-tag, the ABI tag is equivalent to APK_DEFAULT_ARCH, providing
backwards compatibility with apk v2
the /etc/apk/arch configuration file is assumed to actually describe an ABI
tag.
|
|
this is intended to allow for distributions to have alternate streams, such as
glibc-x86_64 or darwin-aarch64
|
|
Including using files found from the cache, or creating the cache
directories with --initdb.
Based on patch by Paul Spooren.
|
|
fixes #10825
|
|
remove incorrect intialization of the ctx->pkginfo
fixes commit 950972a5 "mkndx: fix index generation for v2 and v3 packages"
|
|
Related: https://gitlab.alpinelinux.org/alpine/apk-tools/-/issues/10825
|
|
|
|
Additioal logic is needed to search objects on array: the object
comparer needs separate modes to match index, template or exact
object template. This should fix mkndx to be able to use old index.
fixes #10828
|
|
For v2 packages, the identity was never set.
For v3 packages, the file size was never set.
This fixes both issues.
|
|
Ensure not to mask away previously set APK_VERSION_CONFLICT when
serializing.
When deserializing, make sure to actually write out the conflict
flag when no version part is set.
When creating apk_dependency, ensure to set the conflict bit
correctly and mask it off result_mask.
Fixes https://gitlab.alpinelinux.org/alpine/apk-tools/-/issues/10824
|
|
finally fixes #10821
|
|
fixes #10821
|
|
-i is already global option
fixes #10822
|
|
fixes #10823
|
|
Do not call apk_db_read_layer() or try to process the layer
if APK_OPENF_NO_STATE is specified. It might fail because of
non-existing database directory. Based on patch by Daniel.
fixes commit 9e4dd29f "db: prepare database reading for layers"
Fixes #10821
Reported-and-analyzed-by: Daniel Kolesa <daniel@octaforge.org>
|
|
var/cache is also reported to be mounted noexec on hardened
systems. Document some of the issues, and use lib/apk/exec
for the time being. Keep the scripts still in separate directory
from lib/apk so we can just delete directory if needed.
fixes #6591
|
|
This reverts most of 0dcbd933 which allowed automatic selection
of package with a "virtual provides" having only one provider.
While convenient, it creates problems if multiple versions of the
same package exist, or if in future other providers would be added
to one of the repositories. This restore the original behaviour,
and improve the error message to tell the user to mention one of
the providers explicitly.
fixes #10810
|
|
add priority to order fsdir commit sequence
|
|
remove the left over apk_blob_push_fmt() call that corrupted uri and
trim the path end from trailing slashes to get original functionality.
fixes commit be4ce407 "support new index format without attaching arch"
|
|
The gzip library can drain all of the input to internal buffers
and still keep providing data even if avail_in is zero. Previously
it was assumed that avail_in != 0 if there is still data expected out,
but this logic breaks near end-of-file for multiple short reads.
Adjust logic to not process end-of-file event too early.
fixes #10809
|
|
Be happy if the directory already exists.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
By default the package architecture is attached to the repository url.
With this commit it is possible to define new indexes ending on `.adb`.
If such index file is detected the packages must be in the same folder
as the index.
Signed-off-by: Paul Spooren <mail@aparcar.org>
|
|
Make sure volume is in 'down' state before attempting to remove it.
Signed-off-by: Daniel Golle <daniel@makrotopia.org>
|
|
'uvol' is installed to /usr/sbin by default. Assume that path if not
set by APK_UVOL environment variable.
Signed-off-by: Daniel Golle <daniel@makrotopia.org>
|
|
this regression was caused by refactoring of the options handling into the
apk_ctx struct in 354713d2, presumably a little too much innovation with sed
fixes #10799
|
|
Fail if the package or dependency version format is not valid.
fixes #10807
|
|
|
|
Allow controlling 'cache download' more closely to 'upgrade' so
it can be used to pre-download packages for ugprade.
|
|
Handle meta data error to produce hard failure.
fixes #10806
|
|
|
|
|
|
|
|
|
|
|