requiredby: don't add dups.
--HG-- extra : convert_revision : a883cf0a080e99120b3e17a8836b132ff94079f0
This commit is contained in:
parent
cbb1d1bef5
commit
d6e2d02e9f
|
@ -49,6 +49,9 @@ add_pkg_into_requiredby(prop_dictionary_t pkgd, const char *reqname)
|
|||
return ENOMEM;
|
||||
}
|
||||
|
||||
if (xbps_find_string_in_array(array, reqname))
|
||||
return EEXIST;
|
||||
|
||||
reqstr = prop_string_create_cstring(reqname);
|
||||
if (reqstr == NULL) {
|
||||
if (alloc)
|
||||
|
|
Loading…
Reference in New Issue
Block a user