aboutsummaryrefslogtreecommitdiffstats
path: root/src
Commit message (Collapse)AuthorAgeFilesLines
...
* database: mark error on renameat failureA. Wilcox2017-06-261-2/+6
|
* io: make io vtables const struct, and add accessors for themTimo Teräs2017-06-2313-120/+195
| | | | | This reduces function pointers in heap, and unifies how the io functions are called.
* archive: validate reading of pax and gnu long filename extensionsTimo Teräs2017-06-231-14/+14
| | | | | | | Detect properly if the file stream gets an error during these read operations. Reported-by: Ariel Zelivansky from Twistlock
* archive: fix incorrect bounds checking for memory allocationTimo Teräs2017-06-231-2/+4
| | | | | | | | | | | The value from tar header is unsigned int; keep it casted to unsigned int and size_t instead of (signed) int, otherwise the comparisons fail to do their job properly. Additionally check entry.size against SSIZE_MAX so the rounding up later on is guaranteed to not overflow. Fixes CVE-2017-9669 and CVE-2017-9671. Reported-by: Ariel Zelivansky from Twistlock
* Revert "version: consider pkg-rX and pkg to be the same version"William Pitcock2017-06-231-5/+0
| | | | This reverts commit ee5ce7284aef8679fabcf728dd5bd5a17c965798.
* print: oh dear, i have reworked the progress bar againWilliam Pitcock2017-06-011-4/+15
| | | | | | | | | | | - rework the progress bar a little bit, basically removing the [ and ] to give a more modern aesthetic. - if utf-8 locale is enabled, use unicode codepoint 0x2588 instead of # to give the progress bar a nicer look. - if APK_PROGRESS_CHAR environment variable is defined, use the character defined there for the progress bar.
* apk_defines: implement mulmod()William Pitcock2017-06-011-0/+8
|
* index: fix unsatisfied dependencies warning (maybe vs may be)William Pitcock2017-05-281-1/+1
|
* manifest: fix up help entryWilliam Pitcock2017-05-281-4/+5
|
* version: add support for fuzzy version matchingWilliam Pitcock2017-05-275-9/+26
| | | | | This is useful for requirements such as: python3=~3.6, which would match python3-3.6.[0-9]. This implementation should in theory be backwards compatible with the implementation in Adelie.
* version: consider pkg-rX and pkg to be the same versionA. Wilcox2017-05-271-0/+5
|
* manifest: add file support as well as apkdb supportWilliam Pitcock2017-05-271-0/+55
|
* manifest: dump checksum type tooWilliam Pitcock2017-05-271-1/+5
|
* db: fix regression preventing remounting apk cache r/wTimo Teräs2017-05-251-1/+2
| | | | | Introduced in commit c0f2d88f342f4d185f3991f98b79ab61a03896e4. fstatfs is needed to inspect the mount flags.
* manifest: new applet which dumps checksums in sha1sum format for a packageWilliam Pitcock2017-05-202-1/+75
|
* close database on SIGINTKaarle Ritvanen2017-04-281-1/+9
| | | | cleans up procfs mount
* db: separate init from openKaarle Ritvanen2017-04-284-11/+19
|
* solver: don't clobber package swaps in cases where an installed package is ↵William Pitcock2017-04-271-5/+18
| | | | being replaced by a provider
* print: handle mixing stdout and stderr printingTimo Teräs2017-04-261-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
* 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
|