summaryrefslogtreecommitdiffstats
path: root/src/index.c
Commit message (Collapse)AuthorAgeFilesLines
* First steps for libapkNatanael Copa2010-06-111-0/+1
|
* all: rework how arrays workTimo Teräs2010-06-051-2/+2
| | | | | | | | | | 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.
* index: do not segfault if there are no descriptionNatanael Copa2009-09-031-5/+7
|
* index, version: support for repository descriptions (fixes #141)Timo Teras2009-09-031-12/+27
| | | | | ability embed description information to repository indexes (e.g. repository name and version) and show it via "apk version -I".
* io: better error handling when writing stuff outTimo Teras2009-08-121-1/+1
| | | | | | also have the output stream support writing to temporary file and do renameat/unlinkat on close depending on if all writes succeeded or not.
* all: implement database open optionsTimo Teras2009-08-061-13/+11
| | | | so user can override trusted keys directory and repositories file.
* index: root is needed for signing keysTimo Teras2009-08-051-1/+1
| | | | | so initialize db with a root, but avoid loading state or repositories.
* apk: use *at instead of chdir+normal file syscallTimo Teras2009-07-311-4/+4
| | | | | | | | 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.
* index: more informative error messageTimo Teras2009-07-231-4/+4
| | | | when failed to load an existing index.
* various: more informative error messagesTimo Teras2009-07-221-1/+1
|
* index: read also new style index filesTimo Teras2009-07-211-8/+3
|
* db: signed index loading (ref #46)Timo Teras2009-07-201-1/+1
| | | | prefer index in the new format as signed .tar.gz.
* index: fix output file permissions, verify signed index (ref #46)Timo Teras2009-07-171-2/+2
|
* verify: new applet (ref #46)Timo Teras2009-07-171-1/+4
| | | | an utility to check package signature and integrity.
* various: new style index generationTimo Teras2009-07-161-3/+48
| | | | | | change the index generation to do old index, or the new style index where package identity is sha1 of control block and it's contained within an .tar.gz to allow signing in future.
* gzip: always autoclose the inner streamTimo Teras2009-07-161-1/+1
|
* index: reuse existing index (fixes #25)Timo Teras2009-07-151-23/+69
| | | | | | | | | | replace the old 'delete' option, with 'index'. the idea is that one can provide existing index files to take cached meta-data of the package from (assumes package has not been modified if index is newer, and package size has not changed). this way one always gives the list of .apk files to include in the new index, and the old index is used only as "cache".
* bstream: make tokenizable and load index using bstreamTimo Teras2009-07-141-5/+5
| | | | some fixes on index reading code too.
* help: auto construct helpTimo Teras2009-06-251-4/+7
| | | | And add some more verbosity to the help message.
* improve --help outputNatanael Copa2009-06-191-1/+1
| | | | | 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.
* index: fix segfault bug when trying to deleting an unresolved depNatanael Copa2009-05-141-1/+1
|
* index: support for -d to delete packages from given indexNatanael Copa2009-05-121-4/+61
| | | | | | | | | The syntax is: apk index -d /path/to/APK_INDEX.gz pkg... It does not seem like its possible to remove packages in the db so we trick apk_db_index_write() by setting the repo to on-zero. It's still not perfect since it does not recalculate the dependencies.
* db: database locking and creation to part of opening itTimo Teras2009-01-171-1/+1
| | | | | Add flags field to db open call. Also make error reporting quite a bit more detailed.
* index: write out only packages specified in command lineTimo Teras2009-01-161-6/+4
| | | | | | Ignore /etc/apk/repositories, so additional repositories that depend on other repositories need to have explicit --repository reference on command line when generating the index (to avoid warnings).
* apk: per applet optionsTimo Teras2009-01-131-1/+1
|
* io: apk_ostream stuffTimo Teras2008-11-281-1/+6
|
* Preserve uid and gid. Quiet flag to print dots on progress.Timo Teras2008-04-221-2/+3
|
* Argument parsing. Some other stuff too.Timo Teras2008-04-211-2/+2
|
* Initial commit of some stuff written so far. Still in state of flux. ExpectTimo Teras2008-04-171-0/+70
breakage and major changes.