requiredby: don't add dups.

--HG--
extra : convert_revision : a883cf0a080e99120b3e17a8836b132ff94079f0
This commit is contained in:
Juan RP 2009-02-18 05:33:19 +01:00
parent cbb1d1bef5
commit d6e2d02e9f

View File

@ -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)