aboutsummaryrefslogtreecommitdiffstats
path: root/src/update.c
Commit message (Collapse)AuthorAgeFilesLines
* enable automatic update of indexes controlled by --cache-max-ageTimo Teräs2018-01-041-1/+1
| | | | | | | | | | | | | | | | 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.
* update: return errors also with --quietNatanael Copa2015-04-101-1/+1
| | | | fixes #4040
* update: return failure if any mirror update failedNatanael Copa2015-04-071-2/+6
| | | | fixes #4040
* applets: unify help message by removing final dotsTimo Teräs2013-06-191-1/+1
|
* apk: use string array in applet mains, separate apk_name_foreach_matchingTimo Teräs2013-06-181-1/+1
|
* update: report number of distinct packages availableTimo Teräs2011-12-271-0/+3
|
* all: update copyright year statementTimo Teräs2011-09-131-1/+1
|
* various: use 'atoms' for certain package field and misc fixesTimo Teräs2010-12-141-3/+2
| | | | | | | - implement a hash table for commonly shared fields such as license, version and architecture - use macroes to print blobs or pkgname-pkgver strings - fix some old cruft
* First steps for libapkNatanael Copa2010-06-111-0/+1
|
* index, version: support for repository descriptions (fixes #141)Timo Teras2009-09-031-0/+18
| | | | | ability embed description information to repository indexes (e.g. repository name and version) and show it via "apk version -I".
* state, update: fixesTimo Teras2009-08-061-1/+1
|
* all: implement database open optionsTimo Teras2009-08-061-8/+3
| | | | so user can override trusted keys directory and repositories file.
* db: removed apk_repository_update_all() as its no longer neededNatanael Copa2009-07-091-2/+1
| | | | We use APK_UPDATE_CACHE apk_flag instead.
* help: auto construct helpTimo Teras2009-06-251-2/+2
| | | | And add some more verbosity to the help message.
* db: add function apk_repository_update_allNatanael Copa2009-06-191-4/+1
| | | | | | | | We might want to add an --update-index option to misc applets. For example: apk add --update-index -u package apk version --update-index
* db: cache index files, 'update' appletTimo Teras2009-04-161-0/+41
Cache non-local index files always locally. Introduce 'update' applet to force refresh of cached index files. Fixes #19.