Skip to contentSkip to conversation

trivial: use geturischeme helper function where possible

PATCH New Thomas De Schampheleire 2 participants 2 messages Jul 19, 2013 – Jul 21, 2013

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 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.

---
 package/pkg-generic.mk |  2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
package/pkg-generic.mk +1 -1
@@ -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
 
#1 lore raw

PATCH 1/1 trivial: use geturischeme helper function where possible

Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

"Thomas" == Thomas De Schampheleire <[email protected]> writes:

Thomas> pkg-download.mk contains some helper functions to obtain Thomas> subparts of URLs, like the URI scheme. In pkg-generic.mk, there Thomas> is still one opportunity to use that helper function, instead Thomas> of hardcoding it.

Thomas> Signed-off-by: Thomas De Schampheleire <[email protected]>

Committed, thanks.

Signature · 1 line
Bye, Peter Korsgaard