aboutsummaryrefslogtreecommitdiffstats
path: root/src/del.c
Commit message (Collapse)AuthorAgeFilesLines
* prevent automatic repository index update for 'apk del'Timo Teräs2018-07-181-1/+1
| | | | ref #9063
* apk: usage: cleanup help text when no applet is selectedWilliam Pitcock2018-01-091-0/+1
|
* apk, del: fix few memory leaksTimo Teräs2018-01-031-0/+1
| | | | | | This fixes couple of valgrind reported leaks - though they are non-important since the leak happens on "exit" only and kernel frees it anyway.
* make del, fetch, fix and info return errorsTimo Teräs2014-12-081-0/+8
| | | | | | In case all applet arguments are packages names (that is are not including wildcards), return error if they do not match to some package.
* rework option parsing to have a group structureTimo Teräs2014-10-081-11/+15
| | | | | Add also a new 'commit' group that is the common options for all applets that can commit package changes.
* del: allow deletion of world dependency when it is not installedTimo Teräs2014-05-191-0/+3
| | | | | this happens e.g. after tmpfs boot when not all packages where available: the dependency is in world, but not installed.
* del: don't print own name as reverse dependencyTimo Teräs2013-07-081-2/+8
|
* add, del: main dependencies -> 'world'Dubiousjim2013-06-281-1/+1
| | | | Acked-by: Natanael Copa <ncopa@alpinelinux.org>
* applets: unify help message by removing final dotsTimo Teräs2013-06-191-2/+2
|
* fetch, del: perform wildcard matchingTimo Teräs2013-06-191-45/+41
| | | | ref #511
* del: fix a segfault when trying to delete uninstalled packagesTimo Teräs2013-06-191-1/+4
|
* apk: use string array in applet mains, separate apk_name_foreach_matchingTimo Teräs2013-06-181-11/+13
|
* pkg: apk_pkg_foreach_* add matching generationTimo Teräs2013-06-151-50/+21
| | | | | | So same package it is possible to not match same package multiple times. Use generation count, so this is handled cleanly during recursion, like in the use case of search applet.
* pkg: add global reverse dependency iterator helpers and use themTimo Teräs2013-06-131-72/+36
| | | | ... in the error printing and the package deletion.
* solver: prune broken world dependencies with --forceTimo Teräs2013-06-131-1/+1
| | | | mostly useful for reboot, when all packages are not available.
* solver: rewrite as deductive solver -- core featuresTimo Teräs2013-06-131-6/+6
| | | | | Implementing basic dependency handling, install_if and awareness of pinning.
* del: consider also reverse dependencies for provided namesTimo Teräs2012-10-091-8/+19
| | | | | So we get better error report if package is not deleted due to reverse dependency.
* all: introduce apk_provides and use it in apk_nameTimo Teräs2012-02-241-29/+38
| | | | | | | in preparation for provides support. implements also some dependency satisfaction helper routines. ref #574.
* solver: record repository tag, and flags in solutionTimo Teräs2012-02-161-3/+3
| | | | | name state could get overwritten later, so we can't use that when generating the changeset.
* solver, pkg: implement versioned conflictsTimo Teräs2011-10-241-2/+1
| | | | | One can now say in dependency "!foo<2" which means, that if foo is installed, it needs to be >=2, but it's not a required dependency.
* solver: make state pointers completely internalTimo Teräs2011-09-141-3/+1
| | | | | | | the only bit of information needed in solver commit is the "hard" topology sorting information for trigger ordering. fixes a bug in "apk del" which uses the state pointers to do intermediate calculations between solution solving and commit.
* solver, db: run triggers in dependency orderTimo Teräs2011-09-141-1/+3
| | | | fixes #738
* all: update copyright year statementTimo Teräs2011-09-131-1/+1
|
* del: fix recursive deletion and messages (after solver merge)Timo Teräs2011-09-091-9/+138
| | | | | Deduce the world dependencies to remove locally, and same for the additional messages about packages not deleted.
* applets: start using solver codeTimo Teräs2011-09-091-31/+7
| | | | | | | | | 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.
* various: fix breakage from converting dependency versions to atomsTimo Teräs2011-01-011-0/+1
| | | | | The version now needs to be initialized atom always, since it's dereferenced in various places.
* First steps for libapkNatanael Copa2010-06-111-0/+1
|
* all: rework how arrays workTimo Teräs2010-06-051-3/+0
| | | | | | | | | | 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.
* state: improve error messages from dependency failuresTimo Teräs2010-06-011-6/+5
| | | | | Print more information why installation changeset calculation failed. Fixes #187.
* add, del, db: fix various bugs introduced by earlier commitsTimo Teras2009-08-131-0/+1
| | | | | - make virtual packages work again - make apk del (for non-empty packages) work again
* all: implement database open optionsTimo Teras2009-08-061-15/+11
| | | | so user can override trusted keys directory and repositories file.
* state: fix world dependencies to be honored alwaysTimo Teras2009-08-041-1/+5
| | | | | | 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.
* del: add '-r' to remove top-level dependencies recursivelyTimo Teras2009-08-041-0/+20
| | | | | and by default just update the world, and dump a lost of packages that are not removed. fixes #47.
* help: auto construct helpTimo Teras2009-06-251-2/+3
| | | | 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.
* fix misc compiler warnings about unintialized variables.Natanael Copa2009-05-111-1/+1
| | | | The compiler is actually right about those.
* pkg: apk_deps_del helper introducedTimo Teras2009-04-161-12/+2
|
* del: first remove all targets from world, and then calculate changesTimo Teras2009-04-161-4/+7
|
* state: rework changeset calculation algorithmTimo Teras2009-04-141-4/+26
| | | | | | | | | | | | | | | | | | | | | | | | 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-1/+1
| | | | | Add flags field to db open call. Also make error reporting quite a bit more detailed.
* apk: per applet optionsTimo Teras2009-01-131-1/+1
|
* Argument parsing. Some other stuff too.Timo Teras2008-04-211-3/+3
|
* Initial commit of some stuff written so far. Still in state of flux. ExpectTimo Teras2008-04-171-0/+53
breakage and major changes.