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>
This commit is contained in:
Thomas De Schampheleire 2013-07-19 14:13:43 +02:00 committed by Peter Korsgaard
parent aa86b52ca3
commit 720ca65ce8

View File

@ -269,7 +269,7 @@ ifndef $(2)_SITE_METHOD
$(2)_SITE_METHOD = $($(3)_SITE_METHOD) $(2)_SITE_METHOD = $($(3)_SITE_METHOD)
else else
# Try automatic detection using the scheme part of the URI # 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
endif endif