Fix reinstallation of pkgs in repolock mode.

At the time we've been searching for the pkg in a repo, no repos
were registered resulting in EINVAL. While here, if there's no
declared repos return ENOENT instead.
This commit is contained in:
Juan RP
2015-03-05 21:23:58 +01:00
parent 3da2c3fdda
commit 441f147f05
4 changed files with 64 additions and 2 deletions

View File

@@ -151,5 +151,7 @@ xbps_dictionary_t HIDDEN xbps_archive_get_dictionary(struct archive *,
const char HIDDEN *vpkg_user_conf(struct xbps_handle *, const char *);
xbps_array_t HIDDEN xbps_get_pkg_fulldeptree(struct xbps_handle *,
const char *, bool);
struct xbps_repo HIDDEN *xbps_regget_repo(struct xbps_handle *,
const char *);
#endif /* !_XBPS_API_IMPL_H_ */