xbps_repository_update_pkg: return ENODEV if pkg is not installed.
This commit is contained in:
parent
1031ea0141
commit
5aca09b5f5
@ -73,7 +73,7 @@ repository_find_pkg(const char *pattern, const char *reason)
|
||||
/* update */
|
||||
pkg_repod = xbps_find_pkg_dict_installed(pattern, false);
|
||||
if (pkg_repod == NULL) {
|
||||
rv = errno;
|
||||
rv = ENODEV;
|
||||
goto out;
|
||||
}
|
||||
prop_object_release(pkg_repod);
|
||||
|
Loading…
Reference in New Issue
Block a user