xbps_repo_key_import: ignore local repos.

This commit is contained in:
Juan RP 2013-10-28 12:51:03 +01:00
parent f39f7ff2fa
commit 0247b49f86

View File

@ -47,6 +47,11 @@ xbps_repo_key_import(struct xbps_repo *repo)
int import, rv = 0;
assert(repo);
/*
* Ignore local repositories.
*/
if (!xbps_repository_is_remote(repo->uri))
return 0;
/*
* If repository does not have required metadata plist, ignore it.
*/