aboutsummaryrefslogtreecommitdiffstats
path: root/src/add.c
Commit message (Collapse)AuthorAgeFilesLines
* pkg, info: remember installed packages "replaces"Timo Teräs2011-10-181-2/+3
| | | | | | | | | | | | | "replaces" is now turned to a full dependency type list, so you can make package overwrite files only certain versions of the package (though, we should probably take this into account already at solution calculation phase). Also make 'info --replaces' print the "replaces" of the package. This is in preparation for the policy package support, which still requires "replacement priority" field to decide which packages' files get the preference.
* solver: inheritable solver flagsTimo Teräs2011-09-161-2/+6
| | | | | | allow per-name solver flags to be inheritable, and use them in self-upgrade, add -u and the fix applet. this gives more familiar behaviour for the upgrades.
* all: update copyright year statementTimo Teräs2011-09-131-1/+1
|
* solver: add per-name specific flags, and fix the fix appletTimo Teräs2011-09-131-5/+9
|
* applets: start using solver codeTimo Teräs2011-09-091-36/+13
| | | | | | | | | still todo: - 'fix' is missing - 'del -R' does not work - 'upgrade' does not do self-upgrade first ... and a lot of testing.
* state: use db in own struc when committingNatanael Copa2011-03-301-1/+1
| | | | The db parameter to apk_state_commit is not needed so we remove it.
* add: use default arch instead of noarch, improve errorsTimo Teräs2011-01-051-0/+1
| | | | | | | Packages without architecture should get the platforms default architecture (so we are backwards compatible). Only the virtual packages should get 'noarch' by default. Also print full path to the index file which failed.
* various: use 'atoms' for certain package field and misc fixesTimo Teräs2010-12-141-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
* First steps for libapkNatanael Copa2010-06-111-0/+1
|
* state: improve error messages from dependency failuresTimo Teräs2010-06-011-14/+12
| | | | | Print more information why installation changeset calculation failed. Fixes #187.
* add: print all failing packages instead of only firstNatanael Copa2010-02-261-3/+5
| | | | We want see all packages that fails to install and not only the first
* add, del, db: fix various bugs introduced by earlier commitsTimo Teras2009-08-131-2/+3
| | | | | - make virtual packages work again - make apk del (for non-empty packages) work again
* add: refuse to add bad dependencies to worldTimo Teras2009-08-131-20/+20
| | | | | allow also overriding old (possibly bad) world dependency. hopefully it's more bullet proof now.
* db, audit: audit symlinks (by hash of the link target)Timo Teras2009-08-111-1/+1
|
* add: world needs to be updated before state instantiationTimo Teras2009-08-061-2/+1
| | | | | otherwise old world deps are used and unintended results will happen.
* state: bug fixTimo Teras2009-08-061-1/+2
|
* all: implement database open optionsTimo Teras2009-08-061-24/+19
| | | | so user can override trusted keys directory and repositories file.
* state: fix world dependencies to be honored alwaysTimo Teras2009-08-041-0/+3
| | | | | | previously they might have been skipped on certain situations. this also fixes some other reverse dependency enforcements and implements new "pending" state for locked name.
* apk: use *at instead of chdir+normal file syscallTimo Teras2009-07-311-1/+1
| | | | | | | | 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.
* add, fetch: make handling of special options more logicalTimo Teras2009-07-241-41/+0
|
* db: remove APK_NAME_VIRTUAL flagTimo Teras2009-07-241-1/+1
| | | | | use the package 'installed_size' == 0 as a test instead for dependency only packages.
* db: create cache index with non-repository packagesTimo Teras2009-07-241-7/+20
| | | | | this enables virtual packages and files specified from command line to work on non-harddisk installs.
* signing: verify and generate identityTimo Teras2009-07-221-2/+2
| | | | | | fixes verification of non-repository packages while installing them. this is final thing needed for full signing support (fixes #46).
* add: fixes to installing non-repository packageTimo Teras2009-07-221-3/+13
| | | | | make sure cache is enabled on non-permanent rootfs setups. some optimizations and fixes too.
* various: more informative error messagesTimo Teras2009-07-221-3/+3
|
* various: misc fixesTimo Teras2009-07-221-4/+7
| | | | | | | - 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-1/+1
| | | | prefer index in the new format as signed .tar.gz.
* 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-1/+1
| | | | | | 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.
* db: live with sha1 and md5Timo Teras2009-07-141-1/+2
| | | | this also convers scripts file to a tar archive.
* csum: use openssl insteadTimo Teras2009-07-081-1/+1
| | | | | instead of having static md5 implemenation, use the openssl library for digest functions.
* 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.
* blob: function to checksum a blobTimo Teras2009-06-281-9/+1
| | | | And use it in couple of places. Some whitespace fixes too.
* help: auto construct helpTimo Teras2009-06-251-46/+44
| | | | 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.
* add: support for forced versionsNatanael Copa2009-06-161-16/+5
| | | | | | | Support version numbers specified with packages. For example: apk add 'busybox<1.14' apk add 'squid=>3.0'
* Revert "add: replace coffe-cup with starwars"Timo Teras2009-05-251-3/+47
| | | | | | | | This reverts commit 0906a1c7de37ba54f29e9dbabbbd5ea069258cef. Conflicts: src/add.c
* add: fix segfault when no params are givenLinux User2009-05-211-1/+2
|
* add: replace coffe-cup with starwarsNatanael Copa2009-05-211-48/+4
| | | | saves space
* add: coffe-cupNatanael Copa2009-05-211-0/+49
|
* add: fix segfault when no packages are givenNatanael Copa2009-05-191-1/+1
|
* add: create csum for virtuals. only add the virtual to worldNatanael Copa2009-05-151-2/+14
|
* add: improve error reporting for virtual packagesNatanael Copa2009-05-151-5/+7
| | | | | | By locking all the given dependendencies for virtual packages first we can catch invalid deps and report those. This is alot more helpful than just reporting "Unable to install <virutalpkg>"
* add: support for virtual meta packagesNatanael Copa2009-05-141-4/+34
| | | | | | | | implements 'apk add --virutal metaname dep1 dep2...' where metaname will be an empy meta package with dep1 and dep2 as dependencies. This is useful to prevent abuild to add each makedepend to world which causes some headache when it comes to unintalling them after sucessful build.
* fix uninitialized variable bugNatanael Copa2009-05-141-1/+1
|
* fix misc compiler warnings about unintialized variables.Natanael Copa2009-05-111-2/+3
| | | | The compiler is actually right about those.
* add: delay state initialization til we have all pkgs in dbNatanael Copa2009-05-111-5/+9
| | | | | | | | | The state size is taken from name_id and cannot be extended. So we must wait with initializing the state til we have all packages added to the db. We must also always allocate the package name, incase its not in the repository. This is done with apk_db_get_name().
* state: rework changeset calculation algorithmTimo Teras2009-04-141-6/+18
| | | | | | | | | | | | | | | | | | | | | | | | 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.
* db: database locking and creation to part of opening itTimo Teras2009-01-171-22/+5
| | | | | Add flags field to db open call. Also make error reporting quite a bit more detailed.
* add: --upgrade|-u to control if upgrading is preferred or notTimo Teras2009-01-161-4/+8
|