libxbps: when updating ignore pkgs in config-files state.

This commit is contained in:
Juan RP 2011-06-23 11:40:11 +02:00
parent 9468520e69
commit a1100fd00d
2 changed files with 3 additions and 3 deletions

View File

@ -327,9 +327,9 @@ xbps_find_pkg_dict_installed(const char *str, bool bypattern)
rpkgd = prop_dictionary_copy(pkgd); rpkgd = prop_dictionary_copy(pkgd);
break; break;
case XBPS_PKG_STATE_CONFIG_FILES: case XBPS_PKG_STATE_CONFIG_FILES:
errno = ENOENT;
xbps_dbg_printf("'%s' installed but its state is " xbps_dbg_printf("'%s' installed but its state is "
"config-files\n",str); "config-files, ignoring...\n", str);
errno = ENOENT;
break; break;
default: default:
break; break;

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 = ENODEV; rv = errno;
goto out; goto out;
} }
prop_object_release(pkg_repod); prop_object_release(pkg_repod);