summaryrefslogtreecommitdiffstats
path: root/src/fetch.c
Commit message (Collapse)AuthorAgeFilesLines
* various: use O_CLOEXEC and add some error checkingTimo Teräs2010-06-111-5/+3
|
* First steps for libapkNatanael Copa2010-06-111-0/+1
|
* all: rework how arrays workTimo Teräs2010-06-051-5/+7
| | | | | | | | | | Instead of having a null pointer, use a dummy array which just says the array is empty. This helps in multiple places of the code which would otherwise need explicitly need to check first if the array exists. This has been cause of multiple seg.faults in the past as the array check is easily omitted. This also removes (or fixes) all existing checks accordingly.
* fetch: do not include installed non-repository files in searchTimo Teras2010-03-041-3/+5
| | | | | we do not create mirror repositories from other valid repositories, not from what was installed locally.
* db: prefer local repositories, and implement --no-networkTimo Teras2009-08-061-9/+7
| | | | this helps boots sequence when network is not available.
* all: implement database open optionsTimo Teras2009-08-061-14/+10
| | | | so user can override trusted keys directory and repositories file.
* fetch: --link is -L for short, not -lTimo Teras2009-08-051-1/+1
|
* state: fix world dependencies to be honored alwaysTimo Teras2009-08-041-0/+3
| | | | | | previously they might have been skipped on certain situations. this also fixes some other reverse dependency enforcements and implements new "pending" state for locked name.
* apk: use *at instead of chdir+normal file syscallTimo Teras2009-07-311-26/+28
| | | | | | | | 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.
* add, fetch: make handling of special options more logicalTimo Teras2009-07-241-0/+44
|
* db: open flags revisitedTimo Teras2009-07-071-1/+1
| | | | | more fine grained control what to load, and rename some of the flags to be shorter.
* fetch: respect --simulate optionNatanael Copa2009-07-061-0/+3
|
* help: auto construct helpTimo Teras2009-06-251-8/+11
| | | | And add some more verbosity to the help message.
* ver: only compare the given packages, show versionNatanael Copa2009-06-201-2/+2
| | | | | make apk_version_compare() take strings rather than blobs add apk_pkgversion_compare(), a wrapper that takes packages
* improve --help outputNatanael Copa2009-06-191-1/+2
| | | | | apk --help will list the generic options only and give a list of commands To get the details for a spefic command, 'apk command --help' should be used.
* fetch: use lstat to verify filesize on existing targetsNatanael Copa2009-06-161-3/+2
| | | | | since we dont verify the checksum we dont need to calculate it Speed up when you try fetch lots of stuff thats already there.
* fetch: readlink does not end buffer with \0Natanael Copa2009-06-111-1/+4
| | | | | According the manpage readlink(2) does not append a null byte to buf. So we have to do it ourselves.
* fetch: do not create hardlinks to softlinks but to softlink targetsNatanael Copa2009-06-111-1/+3
| | | | Otherwise the iso image will have softlinks which is not what we want
* fetch: removed debug messageNatanael Copa2009-06-091-1/+0
| | | | leftovers from a debug session.
* fetch: added --link/-L optionNatanael Copa2009-06-091-19/+33
| | | | | | | | | fixes #42 This will also fix a bug that left an empty file in destination dir when source file did not exist in repository. There are still issues with paths longer than 255 chars.
* fetch: fix fd leakNatanael Copa2009-05-261-1/+1
| | | | we should always close the in-stream, not only on failure.
* fetch: close downloaded file. unlink on failureNatanael Copa2009-04-151-0/+3
|
* fetch: new applet to download .apk filesTimo Teras2009-04-151-0/+185
Fixes #24.