libxbps: continue updating all pkgs if xbps is uptodate.

This commit is contained in:
Juan RP 2015-03-29 11:06:18 +02:00
parent 504e68ad82
commit 2216c84eca

View File

@ -247,10 +247,12 @@ xbps_transaction_update_packages(struct xbps_handle *xhp)
xbps_dictionary_get_cstring_nocopy(pkgd, "pkgver", &pkgver); xbps_dictionary_get_cstring_nocopy(pkgd, "pkgver", &pkgver);
pkgname = xbps_pkg_name(pkgver); pkgname = xbps_pkg_name(pkgver);
assert(pkgname); assert(pkgname);
rv = trans_find_pkg(xhp, pkgname, false, false); if (trans_find_pkg(xhp, pkgname, false, false) == 0) {
free(pkgname); free(pkgname);
return rv; return rv;
} }
free(pkgname);
}
iter = xbps_dictionary_iterator(xhp->pkgdb); iter = xbps_dictionary_iterator(xhp->pkgdb);
assert(iter); assert(iter);