summaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
2017-07-29index: Only rewrite arch if no error is encounteredA. Wilcox1-2/+2
2017-07-29database: include POSIX header for ST_* definesA. Wilcox1-0/+1
2017-07-25travis: notify on IRCJakub Jirutka1-0/+7
2017-06-26tar: use standard header prefixTimo Teräs1-1/+9
APKs have been created with GNU tar so far, which uses the GNU extensions for long names. In order to increase portability support the standard header's 'prefix' portion in case the GNU extensions are not present.
2017-06-26db: fix current directory instance caching in tar extractionTimo Teräs1-1/+1
Depending how the directory entries are ordered, the cached dir instance might not have been updated correctly. This has not been a problem as the entries have been ordered, but is now triggered on ppc.
2017-06-26database: mark error on renameat failureA. Wilcox1-2/+6
2017-06-23travis: deploy tarballs with static binary to GH ReleasesJakub Jirutka1-0/+19
The main usage is for alpine-chroot-install and similar scripts, so it can depend on specific *persistent* version.
2017-06-23travis: update alpine-chroot-install to 0.5.1Jakub Jirutka1-2/+2
2017-06-23io: make io vtables const struct, and add accessors for themTimo Teräs13-120/+195
This reduces function pointers in heap, and unifies how the io functions are called.
2017-06-23archive: validate reading of pax and gnu long filename extensionsTimo Teräs1-14/+14
Detect properly if the file stream gets an error during these read operations. Reported-by: Ariel Zelivansky from Twistlock
2017-06-23archive: fix incorrect bounds checking for memory allocationTimo Teräs1-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
2017-06-23Revert "version: consider pkg-rX and pkg to be the same version"William Pitcock1-5/+0
This reverts commit ee5ce7284aef8679fabcf728dd5bd5a17c965798.
2017-06-11gitignore: exclude files generated by root-testsJakub Jirutka1-0/+4
2017-06-11test: modernize testing APKBUILDsJakub Jirutka6-59/+54
2017-06-11test: fix test4.sh, script failure is non-fatalJakub Jirutka1-2/+2
This behaviour has been changed in: 7d5cd2c8a0052a7446515f90d3d0ea5cc2e93efe.
2017-06-11test: fix running root-tests with QEMU user-mode emulationJakub Jirutka1-1/+12
Variable QEMU_EMULATOR is set by enter-chroot script from alpine-chroot-install.
2017-06-11test: run test*.sh with set -xJakub Jirutka1-1/+1
2017-06-11test: fix test6.sh, vmlinuz and initramfs are not symlinksJakub Jirutka1-2/+2
2017-06-11test: fix test6.sh, replace linux-grsec w/ linux-vanilla, add alpine-keysJakub Jirutka1-3/+3
2017-06-11test: exit with non-zero status when some root-test failJakub Jirutka1-3/+4
2017-06-11test: print output log when test failJakub Jirutka1-3/+6
2017-06-11test: fix invalid SYSREPO with http://nl.a.oJakub Jirutka1-1/+1
2017-06-11test: fix target $(repos), APKINDEX is now generated by abuildJakub Jirutka1-3/+0
2017-06-11test: fix target $(repos), PKGDEST is no longer supportedJakub Jirutka1-1/+1
2017-06-11test: fix missing "arch" in testing APKBUILDsJakub Jirutka6-0/+6
2017-06-11travis: set up running tests on Travis CIJakub Jirutka1-0/+27
2017-06-01print: oh dear, i have reworked the progress bar againWilliam Pitcock1-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.
2017-06-01apk_defines: implement mulmod()William Pitcock1-0/+8
2017-05-28index: fix unsatisfied dependencies warning (maybe vs may be)William Pitcock1-1/+1
2017-05-28manifest: fix up help entryWilliam Pitcock1-4/+5
2017-05-27version: add support for fuzzy version matchingWilliam Pitcock5-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.
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-28apk-tools-2.7.1v2.7.1Timo Teräs1-1/+1
2017-04-28test: add test for bug fixed in commit ba7b50c0Timo Teräs3-0/+22
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