diff --git a/lib/repository_findpkg.c b/lib/repository_findpkg.c index 786ef000..acf0fa00 100644 --- a/lib/repository_findpkg.c +++ b/lib/repository_findpkg.c @@ -349,11 +349,11 @@ xbps_repository_install_pkg(const char *pkg, bool by_pkgmatch) if (by_pkgmatch) { if (xbps_find_pkg_in_dict_by_pkgmatch(trans_dict, "unsorted_deps", pkg)) - return 0; + goto out; } else { if (xbps_find_pkg_in_dict_by_name(trans_dict, "unsorted_deps", pkg)) - return 0; + goto out; } /* * Set repository in pkg dictionary.