aboutsummaryrefslogtreecommitdiffstats
path: root/src/url.c
Commit message (Collapse)AuthorAgeFilesLines
* url: return relevant error value from apk_istream_fetchEdan Bedrik2018-05-081-3/+10
|
* url: add "Cache-Control: no-cache" header with --force-refreshTimo Teräs2018-01-031-1/+1
| | | | fixes #8161
* io: make io vtables const struct, and add accessors for themTimo Teräs2017-06-231-3/+7
| | | | | This reduces function pointers in heap, and unifies how the io functions are called.
* io, database: preserve [am]time for cached and fetched filesTimo Teräs2015-11-091-9/+27
| | | | | | | | | | | preserve [am]time for all packages and indexes. this fixes the caching error that 'apk update' is after new index is generated, but before the used mirror is synchronized. this caused local apkindex timestamp to be newer than file in mirror, when in fact it was outdated index. this also fixes fetched files to have build timestamp so that files going to .iso or custom images have proper timestamps (rsync with appropriate --modify-window now works)
* modifications for the previous commit in error message handlingTimo Teräs2015-04-241-1/+1
| | | | forgot to --amend my changes
* fix error mapping typesTimo Teräs2015-04-131-1/+1
| | | | | | on arm char is by default unsigned, so this caused crashes as the ERR_PTR mechanism did not work as expected with unsigned types. extend the array type to be signed short explicitly.
* rework error handling for read streamsTimo Teräs2015-03-101-6/+31
|
* url: fix double free from late libfetch changesTimo Teräs2014-10-081-1/+0
|
* io,url,db: support for if-modified-sinceTimo Teräs2014-10-081-11/+20
|
* url: use libfetch to retrieve http/https/ftp filesTimo Teräs2014-10-081-55/+44
|
* url: double-fallback to static busyboxTimo Teräs2014-04-101-0/+1
|
* db, url: fix exec sentinelsTimo Teräs2013-10-011-2/+2
| | | | http://ewontfix.com/11/
* url: fix fetching from local repositoriesNatanael Copa2013-06-181-3/+3
|
* url: remove unused apk_url_downloadTimo Teräs2013-06-171-33/+0
|
* io: fix splice for copying unknown lengthsTimo Teräs2013-06-171-6/+6
|
* all: update copyright year statementTimo Teräs2011-09-131-1/+1
|
* db: more fix for read-only cache remountingTimo Teräs2011-05-271-0/+1
| | | | | remount to read-write before trying to create the cache directory subdirs. fix a fd leak that might prevent remounting back to rw.
* url: try wget from $PATH first and fallback to busybox wgetNatanael Copa2011-03-111-0/+4
| | | | | | | | | | | | If GNU wget is available, then we want use it as it gives the user possibility to set misc options, such as bandwidth limit in wgetrc. It might also be that busybox is not available in case bootstrapping alpine from other distros (think debian vserver host creating an alpine guest) In any case we, fall back to busybox wget in case wget libs are getting upgraded. (see http://redmine.alpinelinux.org/issues/347)
* url: use always busybox wgetTimo Teräs2011-01-011-1/+1
| | | | | | | I think there used to be problems with using http_proxy on bb wget, but those have been fixed for quite some time. This fixes #347. We should probably use libcurl or similar library eventually, but I'm not entirely sure if/when we want that.
* io: enhance istream/bstreams with pipe to forked childTimo Teräs2010-12-091-5/+37
| | | | | * prunes the child pid to avoid zombies * handles the errors so e.g. file-not-found is reported properly
* apk: use *at instead of chdir+normal file syscallTimo Teras2009-07-311-9/+12
| | | | | | | | this way we never change cwd, and relative filenames are always parsed consistently. this also helps filename construction in many places. this patch also changes '--root' to override location of all configuration to be in the new root. previously it depended on the file which one was used.
* gzip: always autoclose the inner streamTimo Teras2009-07-161-2/+2
|
* url: rename to .backup rather than unlink before wgetNatanael Copa2009-04-211-1/+3
|
* url: unlink file before trying to downloadNatanael Copa2009-04-211-0/+1
|
* db: cache index files, 'update' appletTimo Teras2009-04-161-4/+30
| | | | | | Cache non-local index files always locally. Introduce 'update' applet to force refresh of cached index files. Fixes #19.
* url: allow wget report error messagesNatanael Copa2009-01-161-2/+1
|
* db: index file location is a URLTimo Teras2009-01-151-0/+6
|
* io: prepartions for url handlingTimo Teras2008-11-281-0/+75