aboutsummaryrefslogtreecommitdiff
path: root/package/pkg-download.mk
diff options
context:
space:
mode:
authorGravatar Jérôme Pouiller <jezz@sysmic.org>2015-11-19 11:36:02 +0100
committerGravatar Thomas Petazzoni <thomas.petazzoni@free-electrons.com>2015-12-18 10:08:21 +0100
commitef17d6f2cdf814c97af128ef3424170de3e12cfa (patch)
treef9957f0d7bf7b62301804f6e19f626366a941a86 /package/pkg-download.mk
parent4c050273276b23570933d96e063de96294bc94fa (diff)
downloadbuildroot-ef17d6f2cdf814c97af128ef3424170de3e12cfa.tar.gz
buildroot-ef17d6f2cdf814c97af128ef3424170de3e12cfa.tar.bz2
pkg-download: do not test SITE_METHOD
SITE_METHOD is always set in inner-generic-package. So, it is useless to test it in pkg-download. Signed-off-by: Jérôme Pouiller <jezz@sysmic.org> Reviewed-by: "Yann E. MORIN" <yann.morin.1998@free.fr> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Diffstat (limited to 'package/pkg-download.mk')
-rw-r--r--package/pkg-download.mk7
1 files changed, 1 insertions, 6 deletions
diff --git a/package/pkg-download.mk b/package/pkg-download.mk
index f08f616099..1332e66fd2 100644
--- a/package/pkg-download.mk
+++ b/package/pkg-download.mk
@@ -223,12 +223,7 @@ define DOWNLOAD_INNER
exit 1 ; \
fi ; \
if test -n "$(1)" ; then \
- if test -z "$($(PKG)_SITE_METHOD)" ; then \
- scheme="$(call geturischeme,$(1))" ; \
- else \
- scheme="$($(PKG)_SITE_METHOD)" ; \
- fi ; \
- case "$$scheme" in \
+ case "$($(PKG)_SITE_METHOD)" in \
git) $($(3)_GIT) && exit ;; \
svn) $($(3)_SVN) && exit ;; \
cvs) $($(3)_CVS) && exit ;; \