From 720ca65ce801d8a67f0aca98434b0e514e0c5a6d Mon Sep 17 00:00:00 2001 From: Thomas De Schampheleire Date: Fri, 19 Jul 2013 14:13:43 +0200 Subject: [PATCH] trivial: use geturischeme helper function where possible pkg-download.mk contains some helper functions to obtain subparts of URLs, like the URI scheme. In pkg-generic.mk, there is still one opportunity to use that helper function, instead of hardcoding it. Signed-off-by: Thomas De Schampheleire Signed-off-by: Peter Korsgaard --- package/pkg-generic.mk | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package/pkg-generic.mk b/package/pkg-generic.mk index 668f011b37..b8eaa98bbb 100644 --- a/package/pkg-generic.mk +++ b/package/pkg-generic.mk @@ -269,7 +269,7 @@ ifndef $(2)_SITE_METHOD $(2)_SITE_METHOD = $($(3)_SITE_METHOD) else # Try automatic detection using the scheme part of the URI - $(2)_SITE_METHOD = $(firstword $(subst ://, ,$(call qstrip,$($(2)_SITE)))) + $(2)_SITE_METHOD = $(call geturischeme,$($(2)_SITE)) endif endif