Age | Commit message (Collapse) | Author | Files | Lines |
|
Allow omitting loading of system installed database and system
repositories for the commands that operate on package indexes
only.
|
|
|
|
fixes #10871
|
|
This will also fix "search" to display one match from each principal
pkgname group. "search -e vim" will now show both vim and gvim.
fixes #10864
fixes #10777
|
|
|
|
In order to address the problem with early file ownership (before
passwd/group exists), do a few changes here:
1) For root-owned things, always fall back to fixed values, as
those are the ones we always know and cannot change. Since
the earliest packages only have root-owned files, this fixes
the problem for those.
2) During file migration, if we encounter passwd/group and this
is a newly committed file, reset the idcache, similarly to how
it is done for scripts. This allows the next package to reload
the mappings. Since those two files are usually installed as
a part of the first package, the second package onwards should
have a valid, complete mapping (reset only by scripts).
|
|
Omit separate static cache handling step if the explicit cache
is configured to the static cache directory.
fixes 609fd218 "cache: fix 'clean' to prune static cache always"
|
|
Fix cache applet to prune the static cache which is used for index
files if explicit caching is not enabled.
fixes #10754
|
|
Track separately autoupdate failure, and opening errors. And print
only one error per index at maximum.
This makes update with or without --no-cache consistent.
Ignore errors from local paths as builders often refer to a local
path that is being built, but might be non-existent when building
the first package.
ref #10726
|
|
The --no-chown flag is most useful when running apk as a regular
user, in which case we want to make sure that there are no issues
regarding permissions.
Fixes https://gitlab.alpinelinux.org/alpine/apk-tools/-/issues/10854
|
|
|
|
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 #10834
|
|
|
|
|
|
|
|
Including using files found from the cache, or creating the cache
directories with --initdb.
Based on patch by Paul Spooren.
|
|
fixes #10821
|
|
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>
|
|
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"
|
|
|
|
|
|
|
|
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>
|
|
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
|
|
Handle meta data error to produce hard failure.
fixes #10806
|
|
|
|
|
|
|
|
|
|
|
|
handler
SA_ONESHOT is a GNU-specific alias for POSIX SA_RESETHAND.
|
|
the stat64 family of functions were provided as transitional functions,
but when building on glibc with _GNU_SOURCE, or any other supported system,
the stat functions are equivalent to their stat64 counterparts
|
|
This options is useful for (post)install scripts to run with the same
environment variables as apk is executed.
[TT: minor stylistic changes]
Signed-off-by: Paul Spooren <mail@aparcar.org>
|
|
musl implements support for malloc.h, but it is only a stub. we do not use
any of the GNU-specific malloc interfaces, so just use POSIX stdlib.h instead.
ref #10794
|
|
fixes #10796
|
|
The v3 format will not require the hash, but synthesize it to the
DB so v3 packages can get installed properly.
fixes #10785
|
|
The apk_fsdir_file_digest() servers dual purpose: to calculate
the checksum, but also to determine if the file exists. Move
it's error check where it originally was.
fixes #10791
|
|
fixes #10778
|
|
Remove the APK_REPOSITORY_CACHED bit from dependencies only
packages (that is, installed_size == 0). For fetch, the problem
is that apk_db_select_repo() would return the cache repository,
but the package would not be there. Update also the locations
needed to handle these packages correctly without the cached
repository bit being set.
|
|
|
|
by adding an abstraction layer to the file system
|
|
When extraction failed, the user has had no opportunity to edit
any files. Just clean up.
|
|
fix also the progress callback on uvol extraction
|
|
|
|
|
|
|
|
In most places where pointer can be an 'error' it cannot be null
pointer. Further, in those cases just calling PTR_ERR() is not enough
to handle the null case. Simplify code by removing this case.
If NULL case needs to be handled, it's better to add separate check
and return fixed error code in that case.
|