check_installed_pkgname: returns a bool, so EINVAL is wrong.

--HG--
extra : convert_revision : 6f3d615a27a1bf76962b6daf88929efa8d5cde8e
This commit is contained in:
Juan RP 2009-02-03 17:02:19 +01:00
parent fe8ea8c21c
commit 388dd30b45

View File

@ -45,7 +45,7 @@ check_installed_pkgname(const char *pkgname)
plist = xbps_append_full_path(true, NULL, XBPS_REGPKGDB);
if (plist == NULL)
return EINVAL;
return false;
pkgd = xbps_find_pkg_from_plist(plist, pkgname);
free(plist);