path: root/src/cache.c
Commit message (Collapse)AuthorAgeFilesLines
* First steps for libapkNatanael Copa2010-06-111-0/+1
* all: rework how arrays workTimo Teräs2010-06-051-4/+1
| | | | | | | | | | 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.
* cache: do not download files existing in local repositoryTimo Teras2010-03-011-1/+1
| | | | wget:ing local files results in error and is useless.
* db: prefer local repositories, and implement --no-networkTimo Teras2009-08-061-10/+7
| | | | this helps boots sequence when network is not available.
* all: implement database open optionsTimo Teras2009-08-061-13/+6
| | | | so user can override trusted keys directory and repositories file.
* state: fix world dependencies to be honored alwaysTimo Teras2009-08-041-2/+6
| | | | | | 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-30/+33
| | | | | | | | 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.
* various: misc fixesTimo Teras2009-07-221-3/+4
| | | | | | | - error codes for verification failure types - fix some fdb corruption on file migration - combine some dependency parsing code - fix versioned dependencies
* db: signed index loading (ref #46)Timo Teras2009-07-201-2/+3
| | | | prefer index in the new format as signed .tar.gz.
* cache: make cache cleaning work again properlyTimo Teras2009-07-151-24/+27
* db: live with sha1 and md5Timo Teras2009-07-141-11/+12
| | | | this also convers scripts file to a tar archive.
* blob: some helpers to replace snprintfTimo Teras2009-07-141-3/+4
| | | | | snprintf is dog slow. make the blob stuff have some helper functions so we can use them in code paths that are executed often.
* implement --update-cache optionNatanael Copa2009-07-091-0/+1
| | | | This will update the repository cache upon db_open.
* cache: delete also wget temporary filesTimo Teras2009-07-071-2/+10
| | | | | | check for the full filename to match an expected pattern or delete it (so we delete files with .new, .new.backup, etc.). final part of remote package caching: fixes #49.
* cache: use changeset to figure out downloadablesTimo Teras2009-07-071-3/+23
| | | | | that way we get the same result as the 'apk add world' at boot time; it might differ from currently installed set (ref #49).
* 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.
* cache: new applet (ref #49)Timo Teras2009-06-291-0/+150
Administrative tool to download or delete files to/from the cache.