summaryrefslogtreecommitdiff
path: root/src/upgrade.c
diff options
context:
space:
mode:
authorTimo Teräs <timo.teras@iki.fi>2012-02-16 10:50:52 +0200
committerTimo Teräs <timo.teras@iki.fi>2012-02-16 10:57:52 +0200
commit0800d7e050b738e7faa848291d6021175b853e29 (patch)
tree70d5709e8b87ad49fd3661d4eaf727d025b039d6 /src/upgrade.c
parent7399f1950f5418dc7942579d5e9ed9807c764cce (diff)
downloadapk-tools-0800d7e050b738e7faa848291d6021175b853e29.tar.gz
apk-tools-0800d7e050b738e7faa848291d6021175b853e29.tar.bz2
apk-tools-0800d7e050b738e7faa848291d6021175b853e29.tar.xz
apk-tools-0800d7e050b738e7faa848291d6021175b853e29.zip
solver: record repository tag, and flags in solution
name state could get overwritten later, so we can't use that when generating the changeset.
Diffstat (limited to 'src/upgrade.c')
-rw-r--r--src/upgrade.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/upgrade.c b/src/upgrade.c
index 497fc54..1185079 100644
--- a/src/upgrade.c
+++ b/src/upgrade.c
@@ -45,7 +45,7 @@ int apk_do_self_upgrade(struct apk_database *db, unsigned short solver_flags)
{
struct apk_name *name;
struct apk_changeset changeset = {};
- struct apk_package_array *solution = NULL;
+ struct apk_solution_array *solution = NULL;
int r;
name = apk_db_get_name(db, APK_BLOB_STR("apk-tools"));
@@ -83,7 +83,7 @@ int apk_do_self_upgrade(struct apk_database *db, unsigned short solver_flags)
exit(1);
ret:
- apk_package_array_free(&solution);
+ apk_solution_array_free(&solution);
apk_change_array_free(&changeset.changes);
db->performing_self_update = 0;