Conflict check and skip_remove code cleanups
commit76a991c117f3419e5cd630355b90876084d27c4b
authorDan McGee <dan@archlinux.org>
Tue, 14 Jun 2011 14:30:46 +0000 (14 09:30 -0500)
committerDan McGee <dan@archlinux.org>
Tue, 14 Jun 2011 14:30:46 +0000 (14 09:30 -0500)
tree56d3aaa9965f30d5cdcae14ba021cb7828ecc935
parentba63e31cc7ecc9e7fccb68e9fa4e09c90a8d5c66
Conflict check and skip_remove code cleanups

* Move several variables into better scope
* const-ify a few variables
* Avoid duplicating filelists if it is unnecessary
* Better handling out out of memory condition when adding file conflicts
  to our list

Signed-off-by: Dan McGee <dan@archlinux.org>
lib/libalpm/conflict.c
lib/libalpm/remove.c