xbps-pkgdb: add changes in reqby back to our pkgdb pkg dictionary.

This commit is contained in:
Juan RP 2012-11-18 12:04:57 +01:00
parent 235416b48f
commit ace91b17e0

View File

@ -119,6 +119,8 @@ check_reqby_pkg_cb(struct xbps_handle *xhp,
if (!prop_array_add(pkgd_reqby, curpkgver)) if (!prop_array_add(pkgd_reqby, curpkgver))
return -1; return -1;
prop_dictionary_set(pkgd, "requiredby", pkgd_reqby);
printf("%s: added requiredby entry for %s.\n", printf("%s: added requiredby entry for %s.\n",
pkgver, prop_string_cstring_nocopy(curpkgver)); pkgver, prop_string_cstring_nocopy(curpkgver));
@ -153,6 +155,9 @@ remove_stale_entries_in_reqby(struct xbps_handle *xhp, prop_dictionary_t pkgd)
else else
printf("%s: removed stale entry in requiredby `%s'\n", printf("%s: removed stale entry in requiredby `%s'\n",
pkgver, str); pkgver, str);
prop_dictionary_set(pkgd, "requiredby", reqby);
free(str);
} }
} }