diff options
author | Timo Teras <timo.teras@iki.fi> | 2009-08-04 13:57:54 +0300 |
---|---|---|
committer | Timo Teras <timo.teras@iki.fi> | 2009-08-04 13:57:54 +0300 |
commit | ec2ade154289ce587eab3375445a33cad992c234 (patch) | |
tree | 11d7c8731afa608719330ce3d63f719b250d4171 /src/del.c | |
parent | 8c19869c2910332913b5a4f341dbe612c691782e (diff) | |
download | apk-tools-ec2ade154289ce587eab3375445a33cad992c234.tar.gz apk-tools-ec2ade154289ce587eab3375445a33cad992c234.tar.bz2 apk-tools-ec2ade154289ce587eab3375445a33cad992c234.tar.xz apk-tools-ec2ade154289ce587eab3375445a33cad992c234.zip |
state: fix world dependencies to be honored always
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.
Diffstat (limited to 'src/del.c')
-rw-r--r-- | src/del.c | 6 |
1 files changed, 5 insertions, 1 deletions
@@ -46,6 +46,9 @@ static int del_main(void *ctx, int argc, char **argv) } state = apk_state_new(&db); + if (state == NULL) + goto err; + for (i = 0; i < argc; i++) { struct apk_dependency dep; @@ -63,7 +66,8 @@ static int del_main(void *ctx, int argc, char **argv) } r = apk_state_commit(state, &db); err: - apk_state_unref(state); + if (state != NULL) + apk_state_unref(state); out: apk_db_close(&db); |