aboutsummaryrefslogtreecommitdiffstats
path: root/src/url.c
Commit message (Collapse)AuthorAgeFilesLines
* 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