A. Wilcox
17dd532e42
database: mark error on renameat failure
2017-06-26 10:32:38 +03:00
Jakub Jirutka
6f9dd59098
travis: deploy tarballs with static binary to GH Releases
...
The main usage is for alpine-chroot-install and similar scripts, so it
can depend on specific *persistent* version.
2017-06-23 20:54:16 +02:00
Jakub Jirutka
43e0656c1a
travis: update alpine-chroot-install to 0.5.1
2017-06-23 18:30:57 +02:00
Timo Teräs
4d9c0c39b0
io: make io vtables const struct, and add accessors for them
...
This reduces function pointers in heap, and unifies how the
io functions are called.
2017-06-23 10:07:44 +03:00
Timo Teräs
ca9d476ba3
archive: validate reading of pax and gnu long filename extensions
...
Detect properly if the file stream gets an error during these
read operations.
Reported-by: Ariel Zelivansky from Twistlock
2017-06-23 10:07:44 +03:00
Timo Teräs
6b9a07d1ad
archive: fix incorrect bounds checking for memory allocation
...
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-23 10:07:44 +03:00
William Pitcock
5d439c4739
Revert "version: consider pkg-rX and pkg to be the same version"
...
This reverts commit ee5ce7284a
.
2017-06-23 06:59:13 +00:00
Jakub Jirutka
640a79084a
gitignore: exclude files generated by root-tests
2017-06-11 12:49:00 +02:00
Jakub Jirutka
f5872a74e8
test: modernize testing APKBUILDs
2017-06-11 12:49:00 +02:00
Jakub Jirutka
fd8d3738fe
test: fix test4.sh, script failure is non-fatal
...
This behaviour has been changed in: 7d5cd2c8a0
.
2017-06-11 12:27:00 +02:00
Jakub Jirutka
4d1934f69b
test: fix running root-tests with QEMU user-mode emulation
...
Variable QEMU_EMULATOR is set by enter-chroot script from
alpine-chroot-install.
2017-06-11 12:14:41 +02:00
Jakub Jirutka
73423fc182
test: run test*.sh with set -x
2017-06-11 12:14:41 +02:00
Jakub Jirutka
12c71704d0
test: fix test6.sh, vmlinuz and initramfs are not symlinks
2017-06-11 12:14:41 +02:00
Jakub Jirutka
419e51638c
test: fix test6.sh, replace linux-grsec w/ linux-vanilla, add alpine-keys
2017-06-11 12:14:41 +02:00
Jakub Jirutka
69c343afb9
test: exit with non-zero status when some root-test fail
2017-06-11 12:14:41 +02:00
Jakub Jirutka
d6ef8fbe23
test: print output log when test fail
2017-06-11 12:14:40 +02:00
Jakub Jirutka
dfe395e8fa
test: fix invalid SYSREPO with http://nl.a.o
2017-06-11 12:14:40 +02:00
Jakub Jirutka
9b0359f69a
test: fix target $(repos), APKINDEX is now generated by abuild
2017-06-11 12:14:40 +02:00
Jakub Jirutka
e7c89a1433
test: fix target $(repos), PKGDEST is no longer supported
2017-06-11 12:14:40 +02:00
Jakub Jirutka
b9271ca2a9
test: fix missing "arch" in testing APKBUILDs
2017-06-11 12:14:40 +02:00
Jakub Jirutka
5822316c80
travis: set up running tests on Travis CI
2017-06-11 12:14:39 +02:00
William Pitcock
17f8c2edec
print: oh dear, i have reworked the progress bar again
...
- 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-01 05:25:56 +00:00
William Pitcock
40aee5f1d0
apk_defines: implement mulmod()
2017-06-01 04:24:15 +00:00
William Pitcock
9325eb721d
index: fix unsatisfied dependencies warning (maybe vs may be)
2017-05-28 05:41:36 +00:00
William Pitcock
3eb0a0aaa4
manifest: fix up help entry
2017-05-28 01:09:42 +00:00
William Pitcock
693b4bcdb0
version: add support for fuzzy version matching
...
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-27 21:49:53 +00:00
A. Wilcox
ee5ce7284a
version: consider pkg-rX and pkg to be the same version
2017-05-27 21:34:05 +00:00
William Pitcock
18f7aa9e44
manifest: add file support as well as apkdb support
2017-05-27 21:19:41 +00:00
William Pitcock
46c2693468
manifest: dump checksum type too
2017-05-27 20:55:31 +00:00
Timo Teräs
ede5165833
db: fix regression preventing remounting apk cache r/w
...
Introduced in commit c0f2d88f34
.
fstatfs is needed to inspect the mount flags.
2017-05-25 18:06:27 +03:00
William Pitcock
b4b95e9ae7
manifest: new applet which dumps checksums in sha1sum format for a package
2017-05-20 06:19:00 +00:00
Timo Teräs
d5dad7b7eb
apk-tools-2.7.1
2017-04-28 17:51:55 +03:00
Timo Teräs
9b827d9d41
test: add test for bug fixed in commit ba7b50c0
2017-04-28 17:44:57 +03:00
Kaarle Ritvanen
c072c18d6e
close database on SIGINT
...
cleans up procfs mount
2017-04-28 16:19:01 +03:00
Kaarle Ritvanen
5c349335c7
db: separate init from open
2017-04-28 13:28:32 +03:00
William Pitcock
ba7b50c0f8
solver: don't clobber package swaps in cases where an installed package is being replaced by a provider
2017-04-27 23:23:47 +00:00
Timo Teräs
027df02dc2
print: handle mixing stdout and stderr printing
...
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-26 09:34:32 +03:00
readerreader
f3a4272a02
fetch: spell "its" properly in user visible message
2017-04-25 08:07:32 +03:00
William Pitcock
9fb2568aa7
fetch: open the installed database to allow fetching a dependency tree rooted by a virtual
2017-04-25 00:26:36 +00:00
William Pitcock
e7f8d71d2b
fetch: don't segfault when given an unknown package name
2017-04-25 00:00:19 +00:00
William Pitcock
a841d6b259
print: don't shadow log()
2017-04-24 23:53:26 +00:00
Shiz
5ba27c9000
print: print warnings and errors to stderr
2017-04-24 22:42:29 +00:00
Avi Halachmi (:avih)
515f31eb52
progress: shorten bar to prevent newlines on some terminals
...
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-29 08:14:39 +03:00
Natanael Copa
bcb4b06ff8
db: catch asprintf failure
2017-03-13 14:55:36 +01:00
Natanael Copa
93d6b2b529
db: prevent umount /proc when it was mounted by someone else
...
This fixes regression introduced by commit 72b878e655
2017-03-13 14:55:36 +01:00
Natanael Copa
17ba5dc11c
commit: include limits.h for PATH_MAX
...
this fixes build on ppc64le
2017-03-06 17:38:32 +01:00
Timo Teräs
39b0c88312
apk-tools-2.7.0
2017-02-28 15:51:28 +02:00
Timo Teräs
697c50524a
package: add more secure signature methods
2017-02-28 10:47:15 +02:00
Timo Teräs
0fe3f3964b
fetch: fix --recursive mode to work with pure virtual packages
...
The virtual package provider still needs to be explicitly
given on command line.
2017-02-27 14:56:57 +02:00
Timo Teräs
6542d4ca2c
db: allow overriding cache location
2017-02-27 11:14:33 +02:00