xbps_repository_find_pkg_deps: fix stupid error by reusing a var.

This commit is contained in:
Juan RP 2011-01-27 21:02:56 +01:00
parent 176f5e3e40
commit c58107bd27

View File

@ -384,6 +384,7 @@ find_repo_deps(prop_dictionary_t transd, /* transaction dictionary */
prop_dictionary_set_cstring_nocopy(curpkgd, prop_dictionary_set_cstring_nocopy(curpkgd,
"trans-action", "update"); "trans-action", "update");
} else if (rv == 1) { } else if (rv == 1) {
rv = 0;
if (state == XBPS_PKG_STATE_UNPACKED) { if (state == XBPS_PKG_STATE_UNPACKED) {
/* /*
* Package matches the dependency * Package matches the dependency