From ea468f850f7f1574332abcd0e6a2fb841c0d9411 Mon Sep 17 00:00:00 2001 From: Juan RP Date: Mon, 23 Nov 2009 07:02:14 +0000 Subject: [PATCH] xbps_get_pkg_index_plist: use xbps_check_is_repo_string_remote(). --HG-- extra : convert_revision : xtraeme%40gmail.com-20091123070214-gu6soxr8uflkomam --- lib/util.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/lib/util.c b/lib/util.c index cf778599..72081eaf 100644 --- a/lib/util.c +++ b/lib/util.c @@ -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);