xbps_repository_pool_find_pkg: return ENODEV in bestpkg case if pkg not installed.
This commit is contained in:
parent
5aca09b5f5
commit
e472fc1334
@ -142,8 +142,11 @@ repo_find_best_pkg_cb(struct repository_pool_index *rpi,
|
|||||||
* the version currently installed.
|
* the version currently installed.
|
||||||
*/
|
*/
|
||||||
instpkgd = xbps_find_pkg_dict_installed(rpf->pattern, false);
|
instpkgd = xbps_find_pkg_dict_installed(rpf->pattern, false);
|
||||||
if (instpkgd == NULL)
|
if (instpkgd == NULL) {
|
||||||
return 0;
|
xbps_dbg_printf("[rpool] `%s' not installed, "
|
||||||
|
"ignoring...\n", rpf->pattern);
|
||||||
|
return ENODEV;
|
||||||
|
}
|
||||||
prop_dictionary_get_cstring_nocopy(instpkgd,
|
prop_dictionary_get_cstring_nocopy(instpkgd,
|
||||||
"version", &instver);
|
"version", &instver);
|
||||||
prop_dictionary_get_cstring_nocopy(rpf->pkgd,
|
prop_dictionary_get_cstring_nocopy(rpf->pkgd,
|
||||||
|
Loading…
Reference in New Issue
Block a user