xbps_get_pkg_index_plist: use xbps_check_is_repo_string_remote().

--HG--
extra : convert_revision : xtraeme%40gmail.com-20091123070214-gu6soxr8uflkomam
This commit is contained in:
Juan RP 2009-11-23 07:02:14 +00:00
parent 13706cf0a5
commit ea468f850f

View File

@ -323,8 +323,7 @@ xbps_get_pkg_index_plist(const char *uri)
if (uname(&un) == -1)
return NULL;
if ((strncmp(uri, "http://", 7) == 0) ||
(strncmp(uri, "ftp://", 6) == 0))
if (xbps_check_is_repo_string_remote(uri))
return get_pkg_index_remote_plist(uri, un.machine);
return xbps_xasprintf("%s/%s/%s", uri, un.machine, XBPS_PKGINDEX);