aboutsummaryrefslogtreecommitdiffstats
path: root/src
Commit message (Collapse)AuthorAgeFilesLines
* fetch: spell "its" properly in user visible messagereaderreader2017-04-251-1/+1
|
* fetch: open the installed database to allow fetching a dependency tree ↵William Pitcock2017-04-251-2/+1
| | | | rooted by a virtual
* fetch: don't segfault when given an unknown package nameWilliam Pitcock2017-04-251-1/+2
|
* print: don't shadow log()William Pitcock2017-04-241-3/+3
|
* print: print warnings and errors to stderrShiz2017-04-242-9/+21
|
* progress: shorten bar to prevent newlines on some terminalsAvi Halachmi (:avih)2017-03-291-1/+1
| | | | | | | | | | On some (probably buggy) terminals, printing up to the rightmost column may end up with the terminal issueing a newline (probably due to putting the cursor at the next char -> new line). Some other progress bars avoid it by not reaching the rightmost column. Shorten the bar width from term-width - 7 to -8 (the 7 are "xxx% []").
* db: catch asprintf failureNatanael Copa2017-03-131-1/+2
|
* db: prevent umount /proc when it was mounted by someone elseNatanael Copa2017-03-131-1/+6
| | | | This fixes regression introduced by commit 72b878e655
* commit: include limits.h for PATH_MAXNatanael Copa2017-03-061-0/+1
| | | | this fixes build on ppc64le
* package: add more secure signature methodsTimo Teräs2017-02-281-20/+31
|
* fetch: fix --recursive mode to work with pure virtual packagesTimo Teräs2017-02-273-2/+16
| | | | | The virtual package provider still needs to be explicitly given on command line.
* db: allow overriding cache locationTimo Teräs2017-02-273-7/+13
|
* db: allow caching packages on tmpfsTimo Teräs2017-02-271-3/+1
| | | | | | | | | | fixes #5616 The original intention was not use unnecessary space on tmpfs e.g. if the cache directory is a mount point, but accidentally left unmounted. But there are valid cases when packages are intentionally wanted to be cached on tmpfs. If caching is not desired, the user can just remove the cache directory.
* commit: fix to work if commit_hook.d directory does not existTimo Teräs2017-02-271-2/+2
|
* db: mount /proc for --root if it's not mounted, use mount syscallTimo Teräs2017-02-272-35/+48
| | | | | musl c-library does not work properly without /proc, and potentially running the scripts need this.
* commit: log parameter passed to a hook scriptHenrik Riomar2017-02-161-1/+1
|
* add support for pre and post commit hooksHenrik Riomar2017-02-156-32/+77
| | | | | | | This allows for instance integration of etckeeper [TT: Reorganized code a bit, and modified to use single directory commit_hooks.d with argument for script of stage.]
* Add ppc64le entry in apk defines.Breno Leitao2017-01-171-1/+3
| | | | | | Currently apk only knows about powerpc and ppc64. I am adding support for ppc64le. ppc64le is the based on the ABI v2, which defines the endianess as little, while ppc64 is based on the first 64-bits ABI.
* tar: return correct error for short read of tar archiveTimo Teräs2017-01-051-3/+8
|
* add s390x headersTuan M. Hoang2016-11-211-0/+2
|
* pkg: reset umask for package scriptsTimo Teräs2016-08-231-0/+1
| | | | | | | It is unreasonable to assume that all package writers would except to reset umask themselves. It's done currently in most packages, but we had first issue of this kind recently, so better just reset umask.
* upgrade: improve self upgrade functionality a bitTimo Teräs2016-07-224-14/+45
| | | | trigger it only if apk-tools can be upgrade, add test cases
* lua: remove unused reg_apk_db_meta_methodsTimo Teräs2016-07-221-5/+0
|
* detect aarch64 architecture and assign default name for itTimo Teräs2016-07-081-2/+3
|
* fix cross-compiling to pick right libfetch.aTimo Teräs2016-07-061-1/+1
|
* info: add support for --licenseNatanael Copa2016-06-131-0/+16
| | | | print license with the --license option.
* build: allow override compiler/linker flags for external libsNatanael Copa2016-06-131-9/+11
| | | | | | Make it possible to individually override openssl, zlib and libfetch cflags and linker flags. This makes it possible to build apk-tools without having pkg-config installed.
* fix info --who-owns to work with relative filenamesTimo Teräs2016-05-311-5/+12
| | | | fixes #5656
* index: don't return error if --index does not existsTimo Teräs2016-05-271-2/+2
| | | | | | it's only used to speed up things, and having it non-existant is not a fatal error - all included things in index will be passed in command line anyway
* apk: don't exit with error code for -V and --print-archTimo Teräs2016-04-191-0/+2
|
* blob: fix sign extension in test_bitTimo Teräs2016-04-031-1/+1
|
* fetch: allow enabling --simulateTimo Teräs2016-02-162-2/+6
|
* implement fetch --purgeTimo Teräs2016-02-161-0/+36
| | | | | | | | which will delete any .apk package on output directory that were not downloaded by fetch this allows apk fetch to incrementally build repositories for binary images
* archive: fix long symlink target namesTimo Teräs2016-02-091-2/+2
| | | | | don't overwrite the link_target if it was found from pax header. ref #5076
* commit: self-conflict error and satisfies printingTimo Teräs2015-12-103-11/+20
| | | | | | - self-conflicts when the exact same version of a name is provided twice is now properly detected and diagnozed - don't print redundant satisfies diagnostic
* solver: more debug output for package errorsTimo Teräs2015-12-101-7/+11
|
* db: add support for --no-cacheNatanael Copa2015-12-073-1/+12
| | | | | | | | | Implement --no-cache. The index is read directly from network and not cached. This is useful for docker, where you install a set of packages and directly after purge the cache. (see https://github.com/gliderlabs/docker-alpine/blob/1fc9e59d1689fc4eaf930ec66389fe58062fccec/builder/scripts/apk-install) fixes #4905
* info: fix --installed test of conflictsTimo Teräs2015-11-121-5/+5
|
* add armv7 targetTimo Teräs2015-11-121-0/+2
|
* io, database: preserve [am]time for cached and fetched filesTimo Teräs2015-11-097-11/+122
| | | | | | | | | | | preserve [am]time for all packages and indexes. this fixes the caching error that 'apk update' is after new index is generated, but before the used mirror is synchronized. this caused local apkindex timestamp to be newer than file in mirror, when in fact it was outdated index. this also fixes fetched files to have build timestamp so that files going to .iso or custom images have proper timestamps (rsync with appropriate --modify-window now works)
* search: match packages only onceTimo Teräs2015-11-091-0/+9
| | | | | | | fixes #4770 apk_name_foreach_matching() can matches each package via it's main name and all it's provides. Print matched packages only once.
* io: fix posix_fallocate failure handlingNatanael Copa2015-10-081-1/+1
| | | | | We need fall back to a splice buffer if posix_fallocate call fails due to file being a device (eg tty) or a pipe. This fixes apk fetch --stdout.
* blob: Add missing headerAndrew Wilcox2015-10-081-0/+1
|
* db: stop extract more files if disk is fullTimo Teräs2015-09-031-2/+4
|
* io: use posix_fallocate to allocate disk spaceTimo Teräs2015-09-031-3/+8
| | | | | | ftruncate does not allocate it, and subsequent access to mmaped file will result in SIGBUS. this fixes to properly report disk full errors.
* relocate lock file to /lib/apk/dbTimo Teräs2015-07-021-3/+2
| | | | | | the problem is that var/lock is on root installs symlink to /run/lock (on tmpfs) and does not exist if doing chroot() to that root. fixes apk to work when chrooted to existing rootfs install.
* remove db dir entry properly, so it can be recreated properly if neededTimo Teräs2015-06-261-7/+7
| | | | fixes #4261
* add simple stats appletTimo Teräs2015-06-123-2/+67
|
* free atoms when VALGRIND is definedTimo Teräs2015-06-121-0/+10
|
* for completeness free all arrays before exitTimo Teräs2015-06-122-0/+2
| | | | so valgrind does not report any leaks