xbps_requiredby_pkg_add: ignore existing entries.

--HG--
extra : convert_revision : xtraeme%40gmail.com-20091016113656-386rsnozjjlz500k
This commit is contained in:
Juan RP 2009-10-16 13:36:56 +02:00
parent 865b06be5d
commit d771383442

View File

@ -195,7 +195,9 @@ xbps_requiredby_pkg_add(prop_array_t regar, prop_dictionary_t pkg)
&reqname);
if (strcmp(rdepname, reqname) == 0) {
rv = add_pkg_into_reqby(obj2, fpkgn);
if (rv != 0) {
if (rv == EEXIST)
continue;
else if (rv != 0) {
free(rdepname);
prop_object_iterator_release(iter2);
goto out;