aboutsummaryrefslogtreecommitdiffstats
path: root/src/upgrade.c
Commit message (Collapse)AuthorAgeFilesLines
* solver: inheritable solver flagsTimo Teräs2011-09-161-1/+1
| | | | | | 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.
* solver: make state pointers completely internalTimo Teräs2011-09-141-4/+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/+4
| | | | fixes #738
* upgrade: --no-self-upgrade optionTimo Teräs2011-09-141-5/+16
| | | | | Use it to avoid self-upgrade loops in case something fails during the initial upgrade attempt.
* upgrade: reimplement self-upgrade (after solver merge)Timo Teräs2011-09-141-16/+28
|
* all: update copyright year statementTimo Teräs2011-09-131-1/+1
|
* upgrade: fix context allocationTimo Teräs2011-09-091-0/+1
|
* applets: start using solver codeTimo Teräs2011-09-091-48/+22
| | | | | | | | | still todo: - 'fix' is missing - 'del -R' does not work - 'upgrade' does not do self-upgrade first ... and a lot of testing.
* upgrade: Improve english messages on apk-tools/baselibs upgrade transaction.William Pitcock2011-04-091-2/+2
|
* state: use db in own struc when committingNatanael Copa2011-03-301-2/+2
| | | | The db parameter to apk_state_commit is not needed so we remove it.
* upgrade: reset world dependencies during traversalTimo Teräs2011-03-191-18/+2
| | | | | This allows us to get apk-tools dependencies get reset at proper time in world. As a bonus, it reduces code amount.
* various: use APK_DEPMASK_REQUIRE where applicableTimo Teräs2011-01-011-2/+2
| | | | .. instead of the longer flag combo.
* upgrade: perform upgrade of apk-tools first if availableTimo Teräs2011-01-011-1/+47
| | | | | | Also re-exec's apk-tools to perform rest of the upgrade using the new apk-tools. This allows handling of new apk-tools features properly. Fixes #140.
* various: fix breakage from converting dependency versions to atomsTimo Teräs2011-01-011-2/+4
| | | | | The version now needs to be initialized atom always, since it's dereferenced in various places.
* upgrade: warn (do not fail) on missing top-level package namesTimo Teräs2010-06-151-3/+23
| | | | We we can upgrade rest of system just fine then.
* First steps for libapkNatanael Copa2010-06-111-0/+1
|
* state: improve error messages from dependency failuresTimo Teräs2010-06-011-7/+5
| | | | | Print more information why installation changeset calculation failed. Fixes #187.
* upgrade: reset versioned deps in world when doing upgrade -aNatanael Copa2010-05-121-2/+7
| | | | | | | | | | | Doing "apk add file.apk" adds a versioned dependency to allow downgrading, and sticky version. Most often this is to install single packages from newer repository. So it would make sense to reset them to non-versioned if doing: apk upgrade -a fixes #346
* all: implement database open optionsTimo Teras2009-08-061-14/+10
| | | | 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.
* help: auto construct helpTimo Teras2009-06-251-3/+6
| | | | And add some more verbosity to the help message.
* upgrade: add --available optionTimo Teras2009-06-251-1/+20
| | | | | | | 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-251-0/+55
Currently just goes through all world dependencies and updates them where possible (ref #51).