libxbps: when updating ignore pkgs in config-files state.
This commit is contained in:
parent
9468520e69
commit
a1100fd00d
@ -327,9 +327,9 @@ xbps_find_pkg_dict_installed(const char *str, bool bypattern)
|
||||
rpkgd = prop_dictionary_copy(pkgd);
|
||||
break;
|
||||
case XBPS_PKG_STATE_CONFIG_FILES:
|
||||
errno = ENOENT;
|
||||
xbps_dbg_printf("'%s' installed but its state is "
|
||||
"config-files\n",str);
|
||||
"config-files, ignoring...\n", str);
|
||||
errno = ENOENT;
|
||||
break;
|
||||
default:
|
||||
break;
|
||||
|
@ -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 = ENODEV;
|
||||
rv = errno;
|
||||
goto out;
|
||||
}
|
||||
prop_object_release(pkg_repod);
|
||||
|
Loading…
Reference in New Issue
Block a user