summaryrefslogtreecommitdiff
path: root/src
AgeCommit message (Collapse)AuthorFilesLines
2017-05-27version: consider pkg-rX and pkg to be the same versionA. Wilcox1-0/+5
2017-05-27manifest: add file support as well as apkdb supportWilliam Pitcock1-0/+55
2017-05-27manifest: dump checksum type tooWilliam Pitcock1-1/+5
2017-05-25db: fix regression preventing remounting apk cache r/wTimo Teräs1-1/+2
Introduced in commit c0f2d88f342f4d185f3991f98b79ab61a03896e4. fstatfs is needed to inspect the mount flags.
2017-05-20manifest: new applet which dumps checksums in sha1sum format for a packageWilliam Pitcock2-1/+75
2017-04-28close database on SIGINTKaarle Ritvanen1-1/+9
cleans up procfs mount
2017-04-28db: separate init from openKaarle Ritvanen4-11/+19
2017-04-27solver: don't clobber package swaps in cases where an installed package is ↵William Pitcock1-5/+18
being replaced by a provider
2017-04-26print: handle mixing stdout and stderr printingTimo Teräs1-0/+2
Fixes regression from commit 5ba27c90 which caused stdio buffering issues now that output is split to stderr/stdout. See also commit 51737872 for some of the history. Fixes #7107
2017-04-25fetch: spell "its" properly in user visible messagereaderreader1-1/+1
2017-04-25fetch: open the installed database to allow fetching a dependency tree ↵William Pitcock1-2/+1
rooted by a virtual
2017-04-25fetch: don't segfault when given an unknown package nameWilliam Pitcock1-1/+2
2017-04-24print: don't shadow log()William Pitcock1-3/+3
2017-04-24print: print warnings and errors to stderrShiz2-9/+21
2017-03-29progress: shorten bar to prevent newlines on some terminalsAvi Halachmi (:avih)1-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% []").
2017-03-13db: catch asprintf failureNatanael Copa1-1/+2
2017-03-13db: prevent umount /proc when it was mounted by someone elseNatanael Copa1-1/+6
This fixes regression introduced by commit 72b878e655
2017-03-06commit: include limits.h for PATH_MAXNatanael Copa1-0/+1
this fixes build on ppc64le
2017-02-28package: add more secure signature methodsTimo Teräs1-20/+31
2017-02-27fetch: fix --recursive mode to work with pure virtual packagesTimo Teräs3-2/+16
The virtual package provider still needs to be explicitly given on command line.
2017-02-27db: allow overriding cache locationTimo Teräs3-7/+13
2017-02-27db: allow caching packages on tmpfsTimo Teräs1-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.
2017-02-27commit: fix to work if commit_hook.d directory does not existTimo Teräs1-2/+2
2017-02-27db: mount /proc for --root if it's not mounted, use mount syscallTimo Teräs2-35/+48
musl c-library does not work properly without /proc, and potentially running the scripts need this.
2017-02-16commit: log parameter passed to a hook scriptHenrik Riomar1-1/+1
2017-02-15add support for pre and post commit hooksHenrik Riomar6-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.]
2017-01-17Add ppc64le entry in apk defines.Breno Leitao1-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.
2017-01-05tar: return correct error for short read of tar archiveTimo Teräs1-3/+8
2016-11-21add s390x headersTuan M. Hoang1-0/+2
2016-08-23pkg: reset umask for package scriptsTimo Teräs1-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.
2016-07-22upgrade: improve self upgrade functionality a bitTimo Teräs4-14/+45
trigger it only if apk-tools can be upgrade, add test cases
2016-07-22lua: remove unused reg_apk_db_meta_methodsTimo Teräs1-5/+0
2016-07-08detect aarch64 architecture and assign default name for itTimo Teräs1-2/+3
2016-07-06fix cross-compiling to pick right libfetch.aTimo Teräs1-1/+1
2016-06-13info: add support for --licenseNatanael Copa1-0/+16
print license with the --license option.
2016-06-13build: allow override compiler/linker flags for external libsNatanael Copa1-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.
2016-05-31fix info --who-owns to work with relative filenamesTimo Teräs1-5/+12
fixes #5656
2016-05-27index: don't return error if --index does not existsTimo Teräs1-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
2016-04-19apk: don't exit with error code for -V and --print-archTimo Teräs1-0/+2
2016-04-03blob: fix sign extension in test_bitTimo Teräs1-1/+1
2016-02-16fetch: allow enabling --simulateTimo Teräs2-2/+6
2016-02-16implement fetch --purgeTimo Teräs1-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
2016-02-09archive: fix long symlink target namesTimo Teräs1-2/+2
don't overwrite the link_target if it was found from pax header. ref #5076
2015-12-10commit: self-conflict error and satisfies printingTimo Teräs3-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
2015-12-10solver: more debug output for package errorsTimo Teräs1-7/+11
2015-12-07db: add support for --no-cacheNatanael Copa3-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
2015-11-12info: fix --installed test of conflictsTimo Teräs1-5/+5
2015-11-12add armv7 targetTimo Teräs1-0/+2
2015-11-09io, database: preserve [am]time for cached and fetched filesTimo Teräs7-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)
2015-11-09search: match packages only onceTimo Teräs1-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.