summaryrefslogtreecommitdiffstats
path: root/src
Commit message (Collapse)AuthorAgeFilesLines
...
* state: commit fdb changes even on errorTimo Teras2009-07-221-7/+9
| | | | we might have done already something.
* apk: allow-untrusted optionTimo Teras2009-07-223-10/+21
| | | | to not make hard error of untrusted or missing signatures
* db: honour clean-protected flag againTimo Teras2009-07-221-1/+2
|
* various: more informative error messagesTimo Teras2009-07-2211-62/+92
|
* various: misc fixesTimo Teras2009-07-227-84/+88
| | | | | | | - error codes for verification failure types - fix some fdb corruption on file migration - combine some dependency parsing code - fix versioned dependencies
* db: fix protected directory handlingTimo Teras2009-07-221-32/+13
| | | | do not overwrite untracked files.
* various: installation fixesTimo Teras2009-07-224-88/+156
| | | | | | | | - extract everything as .apk-new and overwrite only after data has been checksummed - url construction fixes (to work with simple http servers) - end of gunzip stream fixed - remove oneshot digesting flag for now as it's usage was broken
* various: fix installation of new style apksTimo Teras2009-07-213-4/+4
|
* index: read also new style index filesTimo Teras2009-07-213-29/+42
|
* pkg: fix indexing of multi-part apksTimo Teras2009-07-213-26/+32
|
* db: increase hash sizes a bitTimo Teras2009-07-211-5/+5
|
* db: don't run pre-install until control data is verifiedTimo Teras2009-07-211-8/+29
| | | | to make sure the scripts have not been altered.
* db: fixes to package checksumming while installing itTimo Teras2009-07-214-40/+61
|
* gzip: fix finalization of compressed outputTimo Teras2009-07-201-5/+8
| | | | | the unflushed data when closing file can be several thousand kiloes, loop until all is written out.
* db: write errors about repository update (fixes #70)Timo Teras2009-07-201-2/+7
|
* db: signed index loading (ref #46)Timo Teras2009-07-209-52/+217
| | | | prefer index in the new format as signed .tar.gz.
* pkg: filenames with '/' cannot be control dataTimo Teras2009-07-201-1/+1
|
* digest: use oneshot context flag where approriateTimo Teras2009-07-176-65/+61
| | | | speeds up digest calculation on some cases.
* index: fix output file permissions, verify signed index (ref #46)Timo Teras2009-07-172-9/+20
|
* pkg: remove debug printsTimo Teras2009-07-171-1/+0
|
* pkg: fix index generationTimo Teras2009-07-172-11/+22
| | | | that got broke during verify implementation.
* verify: new applet (ref #46)Timo Teras2009-07-176-79/+259
| | | | an utility to check package signature and integrity.
* pkg: .PKGINFO field for data checksum is 'datahash'Timo Teras2009-07-161-1/+1
| | | | in future we might add datahashalg to specify the algorithm used.
* archive: use the abuild-tar mangled checksum if availableTimo Teras2009-07-161-8/+28
| | | | to speed up apk installation avoid calculating checksums.
* various: new style index generationTimo Teras2009-07-1611-76/+289
| | | | | | 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-169-41/+22
|
* pkg: remove support for the deprecated .INSTALL scriptTimo Teras2009-07-163-22/+3
|
* index: reuse existing index (fixes #25)Timo Teras2009-07-152-24/+70
| | | | | | | | | | 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".
* cache: make cache cleaning work again properlyTimo Teras2009-07-153-24/+32
|
* blob: base64 encoding and decodingTimo Teras2009-07-152-17/+129
| | | | and prefer sha1 checksums to be stored in base64 encoded format.
* pkg: fix package scanner to read whole archiveTimo Teras2009-07-151-2/+2
| | | | | otherwise we don't get chechksum anymore after the changes to support partial gzip checksumming.
* db: live with sha1 and md5Timo Teras2009-07-1415-159/+371
| | | | this also convers scripts file to a tar archive.
* db: remove debug printTimo Teras2009-07-141-1/+0
| | | | was left there unintentionally while debugging stuff.
* blob: add some likelyness to help compiler optimizationsTimo Teras2009-07-142-12/+24
|
* blob: some helpers to replace snprintfTimo Teras2009-07-146-106/+167
| | | | | snprintf is dog slow. make the blob stuff have some helper functions so we can use them in code paths that are executed often.
* db: speed up fdb creationTimo Teras2009-07-144-46/+50
| | | | | avoid recalculating hashes, and store the lengths of names, so we can optimize some operations.
* build: optimize with -O2 by defaultTimo Teras2009-07-141-2/+3
| | | | also make the array code more explicit to have gcc optimizer happy.
* hash: allow caching of hash valueTimo Teras2009-07-146-27/+61
|
* bstream: make tokenizable and load index using bstreamTimo Teras2009-07-1410-162/+218
| | | | some fixes on index reading code too.
* io: move csumming away from bstream to gunzipTimo Teras2009-07-137-75/+131
| | | | | in future we want to checksum on gzip boundary basis, not the full file.
* openssl: register engines, and use oneshot digest when possibleTimo Teras2009-07-132-5/+2
| | | | to actually get hardware acceleration if available.
* gunzip: accept concatenated gzip streamsTimo Teras2009-07-101-1/+11
| | | | | allow .apk to consist of multiple separate gzip streams which are just concatenated together.
* db: removed apk_repository_update_all() as its no longer neededNatanael Copa2009-07-093-15/+1
| | | | We use APK_UPDATE_CACHE apk_flag instead.
* ver: implement --limitNatanael Copa2009-07-091-27/+24
| | | | | | | | | Support for limiting output for only showing the packages who have the status we are interested in. For example --limit '<' will only list packages that have a newer version available. While here, we also fix so packages that are not in any repository are displayed with '?'.
* implement --update-cache optionNatanael Copa2009-07-094-2/+12
| | | | This will update the repository cache upon db_open.
* db: check cache directory earlyTimo Teras2009-07-081-3/+3
| | | | | we need to know if caching is enabled, before the repositories are added. otherwise the cache is not used properly at db opening time.
* apk: initialize opensslTimo Teras2009-07-081-0/+22
| | | | | add all ciphers and built-in engines so we get e.g. hw acceleration of sha1 when available.
* build: link zlib dynamically, use --as-neededTimo Teras2009-07-081-3/+5
| | | | | | use pkgconfig of zlib instead of hard requiring it. and link in the pkg-config libs with --as-needed as not all of the openssl libs are really required.
* csum: use openssl insteadTimo Teras2009-07-0810-519/+67
| | | | | instead of having static md5 implemenation, use the openssl library for digest functions.
* apk: add --wait option to wait for exclusive lock (fixes #26)Timo Teras2009-07-073-9/+37
|