Added support to keep track of reverse depends on installed packages.
--HG-- extra : convert_revision : 9e3e46f726ef28843dc52b95ce818637c2a18de5
This commit is contained in:
parent
e32d15605b
commit
939a63036e
6 changed files with 189 additions and 26 deletions
|
@ -112,7 +112,7 @@ store_dependency(prop_dictionary_t origind, prop_dictionary_t depd,
|
|||
prop_dictionary_t repod)
|
||||
{
|
||||
prop_dictionary_t dict, curpkgdir, curpkgindir;
|
||||
prop_array_t array;
|
||||
prop_array_t array, rundeps_array;
|
||||
uint32_t prio = 0;
|
||||
size_t len = 0;
|
||||
const char *pkgname, *version, *reqbyname, *reqbyver;
|
||||
|
@ -216,6 +216,9 @@ store_dependency(prop_dictionary_t origind, prop_dictionary_t depd,
|
|||
prop_dictionary_set_cstring(dict, "pkgname", pkgname);
|
||||
prop_dictionary_set_cstring(dict, "version", version);
|
||||
prop_dictionary_set_cstring(dict, "requiredby", reqby);
|
||||
rundeps_array = prop_dictionary_get(depd, "run_depends");
|
||||
if (rundeps_array && prop_array_count(rundeps_array) > 0)
|
||||
prop_dictionary_set(dict, "run_depends", rundeps_array);
|
||||
|
||||
if ((strcmp(array_key, "direct_deps") == 0) ||
|
||||
(strcmp(array_key, "indirect_deps") == 0)) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue