xbps_repository_update_pkg: return ENODEV if pkg is not installed.

This commit is contained in:
Juan RP 2011-10-31 21:29:00 +01:00
parent 1031ea0141
commit 5aca09b5f5

View File

@ -73,7 +73,7 @@ repository_find_pkg(const char *pattern, const char *reason)
/* update */ /* update */
pkg_repod = xbps_find_pkg_dict_installed(pattern, false); pkg_repod = xbps_find_pkg_dict_installed(pattern, false);
if (pkg_repod == NULL) { if (pkg_repod == NULL) {
rv = errno; rv = ENODEV;
goto out; goto out;
} }
prop_object_release(pkg_repod); prop_object_release(pkg_repod);