diff mbox

[3/5] pkg-download: allow ssh URLs

Message ID 1465917079-30473-3-git-send-email-gilles.chanteperdrix@xenomai.org
State Changes Requested
Headers show

Commit Message

Gilles Chanteperdrix June 14, 2016, 3:11 p.m. UTC
Use git when such an URL is met.

Signed-off-by: Gilles Chanteperdrix <gilles.chanteperdrix@xenomai.org>
---
 package/pkg-download.mk | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comments

Thomas Petazzoni June 15, 2016, 9:08 p.m. UTC | #1
Hello,

On Tue, 14 Jun 2016 17:11:17 +0200, Gilles Chanteperdrix wrote:

> diff --git a/package/pkg-download.mk b/package/pkg-download.mk
> index a0f694d..5f7a155 100644
> --- a/package/pkg-download.mk
> +++ b/package/pkg-download.mk
> @@ -225,7 +225,7 @@ define DOWNLOAD_INNER
>  	fi ; \
>  	if test -n "$(1)" ; then \
>  		case "$($(PKG)_SITE_METHOD)" in \
> -			git) $($(3)_GIT) && exit ;; \
> +			git|ssh) $($(3)_GIT) && exit ;; \

There has already been a question from Yann on a previous iteration of
this patch, which hasn't been answered:

"""
What about Hg URLs that can also start with 'ssh://' ?
"""

Indeed, I don't see why a ssh:// URL should necessarily reference a Git
repository. And there's no explanation about this decision in the
commit log.

Thanks,

Thomas
Gilles Chanteperdrix June 16, 2016, 7:40 p.m. UTC | #2
On Wed, Jun 15, 2016 at 11:08:08PM +0200, Thomas Petazzoni wrote:
> Hello,
> 
> On Tue, 14 Jun 2016 17:11:17 +0200, Gilles Chanteperdrix wrote:
> 
> > diff --git a/package/pkg-download.mk b/package/pkg-download.mk
> > index a0f694d..5f7a155 100644
> > --- a/package/pkg-download.mk
> > +++ b/package/pkg-download.mk
> > @@ -225,7 +225,7 @@ define DOWNLOAD_INNER
> >  	fi ; \
> >  	if test -n "$(1)" ; then \
> >  		case "$($(PKG)_SITE_METHOD)" in \
> > -			git) $($(3)_GIT) && exit ;; \
> > +			git|ssh) $($(3)_GIT) && exit ;; \
> 
> There has already been a question from Yann on a previous iteration of
> this patch, which hasn't been answered:
> 
> """
> What about Hg URLs that can also start with 'ssh://' ?
> """
> 
> Indeed, I don't see why a ssh:// URL should necessarily reference a Git
> repository. And there's no explanation about this decision in the
> commit log.

See the discussion here:
http://lists.busybox.net/pipermail/buildroot/2016-May/160670.html
Thomas Petazzoni June 16, 2016, 8:21 p.m. UTC | #3
Hello,

On Thu, 16 Jun 2016 21:40:24 +0200, Gilles Chanteperdrix wrote:

> > """
> > What about Hg URLs that can also start with 'ssh://' ?
> > """
> > 
> > Indeed, I don't see why a ssh:// URL should necessarily reference a Git
> > repository. And there's no explanation about this decision in the
> > commit log.  
> 
> See the discussion here:
> http://lists.busybox.net/pipermail/buildroot/2016-May/160670.html

I might be missing something, but I don't see anything in this
discussion that gives a justification as to why ssh:// in Buildroot
should always mean "git over ssh" and not potentially "mercurial over
ssh" or "subversion over ssh".

Thanks,

Thomas
diff mbox

Patch

diff --git a/package/pkg-download.mk b/package/pkg-download.mk
index a0f694d..5f7a155 100644
--- a/package/pkg-download.mk
+++ b/package/pkg-download.mk
@@ -225,7 +225,7 @@  define DOWNLOAD_INNER
 	fi ; \
 	if test -n "$(1)" ; then \
 		case "$($(PKG)_SITE_METHOD)" in \
-			git) $($(3)_GIT) && exit ;; \
+			git|ssh) $($(3)_GIT) && exit ;; \
 			svn) $($(3)_SVN) && exit ;; \
 			cvs) $($(3)_CVS) && exit ;; \
 			bzr) $($(3)_BZR) && exit ;; \