summaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
2023-11-30database: run triggers with r*id = e*idHEADv2.14.0+adelie1currentZach van Rijn1-0/+13
The 'apk' utility is intended to run as root, however it is not strictly necessary depending on the tasks it needs to execute. If invoked as euid 0 but ruid something else, the mismatch is detected by the (shell) interpreter, which sets euid to ruid, which can cause a trigger expecting privileges to fail silently. Fixes: horizon#379
2023-11-29cache: report errors when unlinkingMax Rees3-12/+19
Before: $ abuild-apk del mutt (1/3) Purging mutt (1.12.1-r0) (2/3) Purging gdbm (1.18.1-r0) (3/3) Purging libidn (1.35-r0) OK: 3752 MiB in 805 packages $ apk cache sync --purge || echo nope, sorry $ ls /home/apk-cache/*gdbm* /home/apk-cache/gdbm-1.18.1-r0.b0b17e93.apk After: $ apk cache sync --purge || echo nope, sorry ERROR: Unable to delete gdbm-1.18.1-r0.b0b17e93.apk: Permission denied nope, sorry
2023-11-29Use "pmmx" instead of "x86" for i386 machinesMax Rees1-1/+1
2023-11-29solver: show debug output with runtime -vvvvv, not compile time -DDEBUG_PRINTMax Rees1-8/+2
2023-11-29Allow build to continue if help.h/manpages are already generatedMax Rees2-2/+2
This would allow future distribution of tarballs that already have help.h and the doc/*.[0-9] manpages pre-generated. Such a tarball could then be built successfully with LUA=no.
2023-11-29test: remove a couple of bashismsMax Rees2-3/+3
Co-authored-by: Samuel Holland <samuel@sholland.org>
2023-11-15fetch: prefer fetching package with the concrete name2.14-stableTimo Teräs1-2/+5
Instead of a package just providing the name
2023-05-10del: fix up previous commitTimo Teräs1-3/+5
fixes commit "del: fix --rdepends" to not delete provided names if not using --rdepends
2023-05-10del: fix --rdependsTimo Teräs1-1/+7
fixes #10898
2023-05-09apk-tools-2.14.0v2.14.0Timo Teräs1-1/+1
2023-05-03db: always generate reverse dependency cacheTimo Teräs1-2/+2
Fixes commit d5ff6c96 "support --from=FROMSPEC". The condition to generate the reverse dependencies changed causing it not to be always generated. Fix this by unconditionally generating it. fixes #10896
2023-05-02doc: fetch: correct --link short option to -lTimo Teräs1-1/+1
Seems originally it was indeed -L, but was inadvertently changed to -l in 2.12_rc1 in options refactoring commit 1d7123d8. Since already the 2.12-stable uses -l, update just documentation. fixes #10894
2023-05-02libfetch, apk: display warning for permanent redirects during initTimo Teräs4-0/+23
fixes #10776
2023-05-02fetch: enable --timeout to set network progress timeoutTimo Teräs4-14/+64
implement it also for connecting to hosts fixes #10869
2023-04-26db: fix apk_db_foreach_matching_name to match all without argsTimo Teräs3-5/+7
This is a fixup to the backport commit 67f5a753: db, apps: sort display results based on package names This makes apk_db_foreach_matching_name() act consistently on between 2.14-stable and master. And updates the call sites where differing behaviour is needed, and fixes dot and other call sites to work again. fixes #10893
2023-04-17db: suppress warning about missing checksum for special filesTimo Teräs1-1/+15
fixes #10889
2023-04-17audit: report new file checksum always in detailsTimo Teräs1-3/+12
2023-04-12apk-tools-2.14.0_rc1v2.14.0_rc1Timo Teräs2-2/+2
2023-04-12db, index: clean up index writing error handlingTimo Teräs2-21/+17
2023-04-12make: define _FILE_OFFSET_BITS=64 for glibcTimo Teräs1-1/+1
2023-04-12use fstatat, not fstatat64Ariadne Conill2-5/+5
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
2023-04-12index: simplify pruning by originTimo Teräs1-11/+5
2023-04-12index: implement --merge and --prune-originTimo Teräs2-9/+52
fixes #10886
2023-04-12db, index: refactor index writingTimo Teräs5-51/+42
2023-04-12pkg: fix filename memory leakTimo Teräs1-8/+5
2023-04-11apk: add --force-missing-repositoriestt-stable-wipTimo Teräs7-10/+20
2023-04-11audit: implement detail recordsTimo Teräs2-28/+67
2023-04-11audit: report errors as 'e'Timo Teräs2-8/+12
2023-04-11audit: add --ignore-busybox-linksTimo Teräs2-1/+18
Ignore any link that has the busybox binary as target. These links are created by a trigger script and not managed by apk.
2023-04-11audit: add a new --full modeTimo Teräs4-48/+105
2023-04-11audit: add --protected-paths to override the audit exceptionsTimo Teräs4-4/+22
2023-04-11io: make apk_blob_from_* return errorTimo Teräs4-49/+49
2023-04-11io: harden apk_fileinfo_getTimo Teräs1-5/+3
Do not attempt to get xattrs from symlinks. Their extraction is not supported either. Do not use alloca.
2023-04-11doc: remove inconsistent syntax for option parametersTimo Teräs1-2/+2
2023-04-11db, dot, fetch, info, list, search: support --from=FROMSPECTimo Teräs10-8/+59
Allow omitting loading of system installed database and system repositories for the commands that operate on package indexes only.
2023-04-11fetch: improve --link handlingTimo Teräs1-7/+7
Handle file: URLs correctly, and don't do linkat() syscall if it is a remote repository. Also account the file size to progress always.
2023-04-11fetch: implement --built-afterTimo Teräs2-0/+27
ref #10873
2023-04-11db, info: sort installed package based data by package nameTimo Teräs4-9/+39
2023-04-11db: case insensitive searchesTimo Teräs3-4/+4
fixes #10871
2023-04-11db, apps: sort packages by pkgname and pkgverTimo Teräs11-63/+191
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
2023-04-11search: always use apk_db_foreach_sorted_name and fnmatchTimo Teräs1-12/+9
To make the search output and experience more consistent.
2023-04-11dot: use apk_db_foreach_matching_nameTimo Teräs1-15/+9
2023-04-11index: report unsatisfied dependency warnings in sorted indented listTimo Teräs1-14/+13
2023-04-11db, apps: sort display results based on package namesTimo Teräs14-102/+191
2023-04-10cache: fix handling of explict cache at static cache locationTimo Teräs1-3/+11
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"
2023-04-10cache: improve and document purgingTimo Teräs3-8/+21
Document cache clean --purge better. Add a cache purge alias for it. And also purge installed package copies on disk installs. fixes #10857
2023-04-10cache: fix 'clean' to prune static cache alwaysTimo Teräs3-21/+30
Fix cache applet to prune the static cache which is used for index files if explicit caching is not enabled. fixes #10754
2023-03-03print: improve indented printing api2.12-stableTimo Teräs4-104/+137
- make sure all commit errors go to stderr - make it a bit more api like (cherry picked and rebased from commit a662047e2c43604bc087ec4dda9a7358368d850b) fixes #10879
2023-02-28version: fix leading zero strippingTimo Teräs3-6/+12
Only the leading zeroes should be ignored. Handle properly if the version component is actually zero. fixes #10880
2023-02-14commit: sort package lists displayed before commitTimo Teräs1-13/+27
Sort the changes by package name before displaying each package listing for easier reading by user. fixes #10866