aboutsummaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
...
* 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-142-3/+4
| | | | 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.
* apk-tools-2.0_pre14apk-tools-2.0_pre14Timo Teras2009-07-131-1/+1
|
* 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
|
* add: ignore install failures on 'apk add --force'Timo Teras2009-07-071-1/+2
| | | | | and use this option in initramfs, so we are likely to get an usable environment even if some packages from world are missing. fixes #50.
* ver: fix output indentationTimo Teras2009-07-071-1/+3
|
* 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-076-35/+45
| | | | | 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
|
* apk-tools-2.0_pre13apk-tools-2.0_pre13Timo Teras2009-07-021-1/+1
|
* info: fix compiler warning on x86_64Natanael Copa2009-06-301-2/+2
| | | | | printf %i does not work so well with size_t on 64 bit. Use %zu which seems to be portable enough.
* cache: new applet (ref #49)Timo Teras2009-06-296-18/+203
| | | | Administrative tool to download or delete files to/from the cache.
* db: cache packages (ref #49)Timo Teras2009-06-294-59/+149
| | | | | | | | | | | If /etc/apk/cache is a symlink to directory, a copy of all installed packages is stored there, and the index of remote repositories will be there instead of /var/lib/apk. This enables to reconstruct running system during boot. Left as todo: remove cached copy when the package is removed, and additional apk applet to download missing packages to cache and/or remove extra items.
* blob: function to checksum a blobTimo Teras2009-06-284-22/+21
| | | | And use it in couple of places. Some whitespace fixes too.
* help: auto construct helpTimo Teras2009-06-2513-142/+264
| | | | And add some more verbosity to the help message.
* upgrade: add --available optionTimo Teras2009-06-253-5/+42
| | | | | | | That will make the upgrade prefer packages available in repositories. This is good if one want's to downgrade packages by removing an experimental repository. Or to force re-install of locally built vs. repository version when the package version are same, but checksum is different. Fixes #51.
* upgrade: new appletTimo Teras2009-06-252-1/+56
| | | | | Currently just goes through all world dependencies and updates them where possible (ref #51).
* package: removed debug codeNatanael Copa2009-06-221-1/+0
|
* version: added apk_version_compare_blob() functionNatanael Copa2009-06-222-7/+9
| | | | | We want be able to compare blobs so we basicly revert the old change, and make a wrapper that takes version strings.
* ver: only compare the given packages, show versionNatanael Copa2009-06-207-37/+71
| | | | | make apk_version_compare() take strings rather than blobs add apk_pkgversion_compare(), a wrapper that takes packages
* db: add function apk_repository_update_allNatanael Copa2009-06-193-4/+13
| | | | | | | | We might want to add an --update-index option to misc applets. For example: apk add --update-index -u package apk version --update-index
* info: support for -d, --descriptionNatanael Copa2009-06-191-5/+20
| | | | and re-arrange the order of displayed info
* info: allow multiple subactions at the same runNatanael Copa2009-06-191-18/+45
| | | | By using a bitmask we can combine subactions
* info: add size and webpage to usageNatanael Copa2009-06-191-1/+1
|
* info: add -w,--webpage and -s,--size optionsNatanael Copa2009-06-191-0/+30
|