index : pacman | |
Archlinux32 fork of pacman | gitolite user |
summaryrefslogtreecommitdiff |
author | Nagy Gabor <ngaba@bibl.u-szeged.hu> | 2008-07-16 15:27:37 +0200 |
---|---|---|
committer | Dan McGee <dan@archlinux.org> | 2008-07-17 20:20:06 -0500 |
commit | 59295081982b33640f4e16589ef281872da540b5 (patch) | |
tree | 2d48097109b8b7ea014e2163f7f5f9a0c5963e2d /lib/libalpm/remove.c | |
parent | 03021713e5315312b150e6ac9c5cf48fe68f7615 (diff) |
-rw-r--r-- | lib/libalpm/remove.c | 3 |
diff --git a/lib/libalpm/remove.c b/lib/libalpm/remove.c index 625abe67..864fafaf 100644 --- a/lib/libalpm/remove.c +++ b/lib/libalpm/remove.c @@ -120,6 +120,9 @@ static void remove_prepare_keep_needed(pmtrans_t *trans, pmdb_t *db, pmdepmissing_t *miss = (pmdepmissing_t *)i->data; void *vpkg; pmpkg_t *pkg = _alpm_pkg_find(trans->packages, miss->causingpkg); + if(pkg == NULL) { + continue; + } trans->packages = alpm_list_remove(trans->packages, pkg, _alpm_pkg_cmp, &vpkg); pkg = vpkg; |