summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas De Schampheleire <patrickdepinguin+buildroot@gmail.com>2013-07-19 12:13:43 (GMT)
committer Peter Korsgaard <jacmet@sunsite.dk>2013-07-21 22:12:00 (GMT)
commit720ca65ce801d8a67f0aca98434b0e514e0c5a6d (patch)
tree3875cabe7b691369b4df178258c6c2b6fe5ed5b9
parentaa86b52ca35b6bd9ebf352c55d4fb3c940c44527 (diff)
downloadbuildroot-720ca65ce801d8a67f0aca98434b0e514e0c5a6d.tar.gz
buildroot-720ca65ce801d8a67f0aca98434b0e514e0c5a6d.tar.bz2
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 <thomas.de.schampheleire@gmail.com> Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
-rw-r--r--package/pkg-generic.mk2
1 files changed, 1 insertions, 1 deletions
diff --git a/package/pkg-generic.mk b/package/pkg-generic.mk
index 668f011..b8eaa98 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