- Jan 08, 2018
-
-
Timo Teräs authored
-
Timo Teräs authored
-
- Jan 04, 2018
-
-
Timo Teräs authored
-
Timo Teräs authored
This modifies apk cache for indexes to be automatically refreshed periodically without explicit 'update' or '--update-cache' usage. The default is to do if-modified-since request if the local copy is older than 4 hours. This age can be changed with --cache-max-age. Using --update-cache will change this age to 60 seconds to make sure the cached copy is relatively new. The small age is in order to try to avoid downloading indexes second time when apk-tools is upgraded and apk re-execs after self-upgrade. Accordingly using explicitly 'apk update' will now enforce --force-refresh and request the very latest index by requesting any potential http proxy to do refresh too.
-
- Jan 03, 2018
-
-
Timo Teräs authored
fixes #8161
-
Timo Teräs authored
This unloads --force as several of the things are really not wanted together. E.g. --force-refresh is a lot different from --force-broken-world and doing --force to get the other might introduce unwanted behaviour. --force is still kept for backwards compatibility and it enables most things --force was used for.
-
Timo Teräs authored
ref #8161
-
This flag enables a group of options used during initramfs tmpfs initial install.
-
This flag skips running hook scripts This flag *must* be used during initramfs tmpfs initial install. The reason that this new flag is needed is that the hooks will currently always fail as musl and /bin/sh is missing at this stage on diskless.
-
Timo Teräs authored
fixes #8160
-
Timo Teräs authored
This change just changes to keep deleted directory items in the hash with ref count zero and modified flag set. Those entries are reused when needed. The side effect is that fire_triggers() will now see those removed direcotries and reports them. Other enumerators of the directories hash are protected to skip removed directories when appropriate.
-
Timo Teräs authored
This fixes couple of valgrind reported leaks - though they are non-important since the leak happens on "exit" only and kernel frees it anyway.
-
- Jan 02, 2018
-
-
Timo Teräs authored
-
Ariadne Conill authored
-
Ariadne Conill authored
-
- Dec 30, 2017
-
-
Timo Teräs authored
-
- Dec 15, 2017
-
-
- Dec 12, 2017
-
-
Timo Teräs authored
In discovery phase, there was logic to not process packages multiple times. However, that logic failed to account the package's depth and install_if state for the name being processed. This caused install_if processing failure in certain topologies of the dependency graph. Adds also a test case that should catch this issue reliably.
-
- Dec 11, 2017
-
-
- Nov 28, 2017
-
-
Timo Teräs authored
-
- Nov 02, 2017
-
-
Ariadne Conill authored
This ensures a swap is emitted when replacing a virtual with apk add.
-
Ariadne Conill authored
-
Ariadne Conill authored
-
Ariadne Conill authored
-
Ariadne Conill authored
By introducing a new package metadata field, `provider_priority` (index letter `k`), we can specify default packages to satisfy a virtual. If a user wishes to select an alternative provider for the virtual, a changeset swapping the default provider for the selected provider will be generated by the dependency resolver.
-
- Oct 27, 2017
-
-
Timo Teräs authored
-
Timo Teräs authored
-
Timo Teräs authored
this fixes package selection when a 'real' package exists, but would need to be provided by another package with 'virtual provides'. In current package database this can happen with postgresql which is also provided by postgresql-bdr. Normally postgresql would be satisfied by postgresql, but if any package depends on postgresql-bdr and there's no versioned dependency on postgresql this will help apk figure out that postgresql-bdr should be used.
-
- Oct 12, 2017
-
-
Timo Teräs authored
-
- Oct 10, 2017
-
-
Timo Teräs authored
dbopts->root may be null; use db->root instead fixes #7162
-
- Oct 06, 2017
-
-
Timo Teräs authored
-
Timo Teräs authored
OpenSSL allows passing zero-length to indicate "use strlen". LibreSSL requires using the real length always, so pass the length.
-
Timo Teräs authored
X509_check_host() is introduced in libressl-2.5.0 and openssl-1.0.2 which are not yet universally available. Add support for building against the older versions.
-
- Oct 05, 2017
-
-
Timo Teräs authored
loosely based on the freebsd implementation, implement https connection settings to override CA, and use client certificate. new files supported in /etc/apk/: ca.pem - if exists, it contains CAs acceptable for https (otherwise system wide CAs are used) crl.pem - if ca.pem is used, this is the (optional) CRL for it cert.pem - used as client authentication certificate (+ key) cert.key - used as client key (can be also inside cert.pem)
-
Timo Teräs authored
-
Timo Teräs authored
from freebsd
-
Timo Teräs authored
-
Timo Teräs authored
ftp://ftp.fu-berlin.de/unix/NetBSD/packages/current-src/pkgsrc/net/libfetch/files libfetch comes (at least) in netbsd and freebsd flavors which differing functionality. Alpine and Arch package netbsd one, but it's not widely packaged across other distributions. We need NetBSD version as it does not use funopen(3) which is not supported in musl, and supports connection pooling. FreeBSD seems to be the orignal and better maintained version with support for SSL CAs, client certificate authentication, proxy authentication, and improved http redirect handling. So this imports NetBSD version, and future commits will pick up the needed improvements from FreeBSD tree. Incidentally, this also fixes #7857 and likes for good.
-
- Oct 04, 2017
-
-
Timo Teräs authored
this is a regression introduced in commit 349c61c9 ("add support for pre and post commit hooks")
-
- Sep 27, 2017
-
-