Improve cachedir removal and error handling
commit36d98b3919d37c7f376c9f0f787a3b4b660da73e
authorDan McGee <dan@archlinux.org>
Mon, 20 Jun 2011 05:18:29 +0000 (20 00:18 -0500)
committerDan McGee <dan@archlinux.org>
Mon, 20 Jun 2011 05:18:29 +0000 (20 00:18 -0500)
tree7ade7c3b81d84ee7b4e58a3399a05a443a3ec3e9
parent83071f579c4ae14c469d83caa71e80a4be3689df
Improve cachedir removal and error handling

* Check the return value of canonicalize_path() for non-NULL
* Use ASSERT and RET_ERR as appropriate
* Make remove_cachedir() use same path munge logic as add_cachedir()

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