summaryrefslogtreecommitdiff
path: root/src/index.c
AgeCommit message (Collapse)AuthorFilesLines
2013-06-28various: applet help text and comment fixesDubiousjim1-1/+1
Acked-by: Natanael Copa <ncopa@alpinelinux.org>
2013-06-19applets: unify help message by removing final dotsTimo Teräs1-1/+1
2013-06-18apk: use string array in applet mains, separate apk_name_foreach_matchingTimo Teräs1-10/+11
2013-06-14audit, index, search, upgrade: use foreach_array_itemTimo Teräs1-3/+4
2013-06-12libapk, apk(8): fix header inclusion issues with musl's headersWilliam Pitcock1-0/+1
2013-05-30index: add sensible error message if metadata is too longTimo Teräs1-19/+24
fixes #1476 Instead of: ERROR: Index generation failed: Success The following is now printed: ERROR: Metadata for package timo-1.0-r0 is too long. ERROR: Index generation failed: No buffer space available
2012-02-24all: introduce apk_provides and use it in apk_nameTimo Teräs1-3/+5
in preparation for provides support. implements also some dependency satisfaction helper routines. ref #574.
2011-09-13all: update copyright year statementTimo Teräs1-1/+1
2011-06-28index: handle errors instead of silently failingTimo Teräs1-2/+14
Make indexer keep noise about errors that prevent index generation. Detect certain errors in the APKs better. And also have the applet return error in these scenarios.
2011-04-04index: support rewriting of architectureTimo Teräs1-2/+13
Our build infra does not yet handle properly noarch, so for the time being we will rewrite them as native packages in index. This allows the package to be fetched from the proper URL. This feature will be removed once abuild and the build infra handle noarch properly.
2011-01-01index: remove support of old index formatTimo Teräs1-7/+0
It's no longer needed or used.
2010-12-14various: use 'atoms' for certain package field and misc fixesTimo Teräs1-1/+1
- implement a hash table for commonly shared fields such as license, version and architecture - use macroes to print blobs or pkgname-pkgver strings - fix some old cruft
2010-06-11First steps for libapkNatanael Copa1-0/+1
2010-06-05all: rework how arrays workTimo Teräs1-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.
2009-09-03index: do not segfault if there are no descriptionNatanael Copa1-5/+7
2009-09-03index, version: support for repository descriptions (fixes #141)Timo Teras1-12/+27
ability embed description information to repository indexes (e.g. repository name and version) and show it via "apk version -I".
2009-08-12io: better error handling when writing stuff outTimo Teras1-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.
2009-08-06all: implement database open optionsTimo Teras1-13/+11
so user can override trusted keys directory and repositories file.
2009-08-05index: root is needed for signing keysTimo Teras1-1/+1
so initialize db with a root, but avoid loading state or repositories.
2009-07-31apk: use *at instead of chdir+normal file syscallTimo Teras1-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.
2009-07-23index: more informative error messageTimo Teras1-4/+4
when failed to load an existing index.
2009-07-22various: more informative error messagesTimo Teras1-1/+1
2009-07-21index: read also new style index filesTimo Teras1-8/+3
2009-07-20db: signed index loading (ref #46)Timo Teras1-1/+1
prefer index in the new format as signed .tar.gz.
2009-07-17index: fix output file permissions, verify signed index (ref #46)Timo Teras1-2/+2
2009-07-17verify: new applet (ref #46)Timo Teras1-1/+4
an utility to check package signature and integrity.
2009-07-16various: new style index generationTimo Teras1-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.
2009-07-16gzip: always autoclose the inner streamTimo Teras1-1/+1
2009-07-15index: reuse existing index (fixes #25)Timo Teras1-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".
2009-07-14bstream: make tokenizable and load index using bstreamTimo Teras1-5/+5
some fixes on index reading code too.
2009-06-25help: auto construct helpTimo Teras1-4/+7
And add some more verbosity to the help message.
2009-06-19improve --help outputNatanael Copa1-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.
2009-05-14index: fix segfault bug when trying to deleting an unresolved depNatanael Copa1-1/+1
2009-05-12index: support for -d to delete packages from given indexNatanael Copa1-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.
2009-01-17db: database locking and creation to part of opening itTimo Teras1-1/+1
Add flags field to db open call. Also make error reporting quite a bit more detailed.
2009-01-16index: write out only packages specified in command lineTimo Teras1-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).
2009-01-13apk: per applet optionsTimo Teras1-1/+1
2008-11-28io: apk_ostream stuffTimo Teras1-1/+6
2008-04-22Preserve uid and gid. Quiet flag to print dots on progress.Timo Teras1-2/+3
2008-04-21Argument parsing. Some other stuff too.Timo Teras1-2/+2
2008-04-17Initial commit of some stuff written so far. Still in state of flux. ExpectTimo Teras1-0/+70
breakage and major changes.