summaryrefslogtreecommitdiffstats
path: root/src/apk_package.h
Commit message (Collapse)AuthorAgeFilesLines
* state: improve error messages from dependency failuresTimo Teräs2010-06-011-0/+2
| | | | | Print more information why installation changeset calculation failed. Fixes #187.
* db: implement triggers (fixes #45)Timo Teras2009-08-131-3/+4
|
* db, pkg: separate structure for fields of installed packagesTimo Teras2009-08-121-25/+27
| | | | | | | this makes the database package entry smaller, and we propbably get more fields to installed_package later too. this cleans up the way scripts are stored and is a preparation for supporting triggers. some parsing for trigger meta-data. ref #45.
* db: support "replaces" directive (fixes #113)Timo Teras2009-08-041-0/+1
| | | | | it will allow to overwrite files owned by some other packages to get upgrades right (e.g. when splitting or renaming packages)
* apk: use *at instead of chdir+normal file syscallTimo Teras2009-07-311-1/+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.
* signing: verify and generate identityTimo Teras2009-07-221-0/+1
| | | | | | fixes verification of non-repository packages while installing them. this is final thing needed for full signing support (fixes #46).
* various: more informative error messagesTimo Teras2009-07-221-2/+2
|
* various: misc fixesTimo Teras2009-07-221-3/+5
| | | | | | | - 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-4/+9
| | | | prefer index in the new format as signed .tar.gz.
* digest: use oneshot context flag where approriateTimo Teras2009-07-171-1/+2
| | | | speeds up digest calculation on some cases.
* verify: new applet (ref #46)Timo Teras2009-07-171-3/+29
| | | | an utility to check package signature and integrity.
* various: new style index generationTimo Teras2009-07-161-1/+5
| | | | | | 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.
* pkg: remove support for the deprecated .INSTALL scriptTimo Teras2009-07-161-1/+0
|
* cache: make cache cleaning work again properlyTimo Teras2009-07-151-0/+2
|
* db: live with sha1 and md5Timo Teras2009-07-141-2/+4
| | | | this also convers scripts file to a tar archive.
* ver: only compare the given packages, show versionNatanael Copa2009-06-201-0/+2
| | | | | make apk_version_compare() take strings rather than blobs add apk_pkgversion_compare(), a wrapper that takes packages
* add: support for forced versionsNatanael Copa2009-06-161-0/+4
| | | | | | | Support version numbers specified with packages. For example: apk add 'busybox<1.14' apk add 'squid=>3.0'
* pkg: clean up writing of dependenciesTimo Teras2009-04-161-3/+1
|
* pkg: apk_deps_del helper introducedTimo Teras2009-04-161-0/+2
|
* state: rework changeset calculation algorithmTimo Teras2009-04-141-3/+10
| | | | | | | | | | | | | | | | | | | | | | | | Calculate changesets directly by stabilizating the package graph instead of recalculating the whole graph and then diffing (similar approach as seen in 'smart' package manager). The algorithm is not complete: defferred search space forking is missing. So you don't always get a solution on complex graphs. Benefits: - usually the search state tree is smaller (less memory used) - speed relational to changeset size, not database size (usually faster) - touch only packages related to users request (can work on partitially broken state; upgrades only necessary packages, fixes #7) Also implemented: - command prompt to confirm operation if packages are deleted or downgraded - requesting deletion of package suggests removal of all packages depending on the package being removed (you'll get list of packages that also get removed if you want package X removed) - option --simulate to see what would have been done (mainly for testing) - an untested implementation of versioned dependencies and conflicts A lot has changed, so expect new bugs too.
* pkg: write dependencies directly file instead of bufferTimo Teras2009-03-171-0/+1
| | | | | So we don't get artificial limits on the amount of dependencies (fixes #8).
* add: --upgrade|-u to control if upgrading is preferred or notTimo Teras2009-01-161-5/+2
|
* db: restructure in-memory organizationTimo Teras2009-01-061-1/+1
|
* io: apk_ostream stuffTimo Teras2008-11-281-1/+1
|
* add: add support to install packages not in a repositoryTimo Teras2008-11-281-0/+1
|
* db: rework 'files' to 'installed'Timo Teras2008-11-281-0/+4
| | | | | Make the db of installed packages more similar to index file and reuse the code. Also rename the database file.
* hash, db: use apk_blob_t and list_*Timo Teras2008-11-271-1/+1
|
* use zlib internally to decompressTimo Teras2008-11-071-1/+2
|
* pkg: support for new scriptsTimo Teras2008-11-071-6/+8
|
* Overwriting of bb files, apk_create (from old apk-tools), chdir changes,Timo Teras2008-04-221-1/+1
| | | | | other stuff.
* Initial commit of some stuff written so far. Still in state of flux. ExpectTimo Teras2008-04-171-0/+84
breakage and major changes.