Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: Yann E. MORIN <yann.morin.1998@free.fr>
To: buildroot@busybox.net
Subject: [Buildroot] [PATCH v2] support/download: Aternative access methods to CVS
Date: Tue, 19 Jan 2016 22:40:14 +0100	[thread overview]
Message-ID: <20160119214014.GF3360@free.fr> (raw)
In-Reply-To: <1452888795-14158-1-git-send-email-joao@datacom.ind.br>

Joao, All,

On 2016-01-15 18:13 -0200, Joao Mano spake thusly:
> Allows user to specify other access methods than
> :pserver:anonymous@ on CVS repositories.
> 
> This shall be specifically defined along MODULE_SITE string.
> 
> Signed-off-by: Joao Mano <joao@datacom.ind.br>
> 
> ---
> Changes v1 -> v2:
>  - Documentation improved with examples. (Thomas Petazzoni suggestion)
> 
> Signed-off-by: Joao Mano <joao@datacom.ind.br>
> ---
>  docs/manual/adding-packages-generic.txt | 7 ++++++-
>  support/download/cvs                    | 8 +++++++-
>  2 files changed, 13 insertions(+), 2 deletions(-)
> 
> diff --git a/docs/manual/adding-packages-generic.txt b/docs/manual/adding-packages-generic.txt
> index 1c25c4e..1f9c7bb 100644
> --- a/docs/manual/adding-packages-generic.txt
> +++ b/docs/manual/adding-packages-generic.txt
> @@ -279,7 +279,12 @@ information is (assuming the package name is +libfoo+) :
>    ** +cvs+ for retrieving source code from a CVS repository.
>       Used by default when +LIBFOO_SITE+ begins with +cvs://+.
>       The downloaded source code is cached as with the +svn+ method.
> -     Only anonymous pserver mode is supported.
> +     Anonymous pserver mode is assumed otherwise explicitly defined
> +     on +LIBFOO_SITE+. Both
> +     +LIBFOO_SITE=cvs://libfoo.net:/cvsroot/libfoo+ and
> +     +LIBFOO_SITE=cvs://:ext:libfoo.net:/cvsroot/libfoo+
> +     are accepted, on the former anonymous pserver access mode is
> +     assumed.
>       +LIBFOO_SITE+ 'must' contain the source URL as well as the remote
>       repository directory. The module is the package name.
>       +LIBFOO_VERSION+ is 'mandatory' and 'must' be a tag, a branch, or
> diff --git a/support/download/cvs b/support/download/cvs
> index e1d5035..b4e947a 100755
> --- a/support/download/cvs
> +++ b/support/download/cvs
> @@ -40,8 +40,14 @@ else
>      select="-r"
>  fi
>  
> +# The absence of an initial : on ${repo} means access method undefined
> +if [[ ${repo} == [^:]* ]]; then

  - quote variable expansions, to protect against empty variables.
  - I think a regexp would be better to match against

    if [[ ! "${repo}" =~ ^: ]]; then

(yes I know, the other condition is not quoting the variable. My bad, I
forgot to state so in my review of that patch, back then. Still, that's
not an exscue for not doing it properly here. Maybe you can also fix it
when you resubmit, please? ;-) )

> +   # defaults to anonymous pserver
> +   repo=":pserver:anonymous@${repo}"
> +fi
> +
>  export TZ=UTC
> -_cvs ${verbose} -z3 -d"':pserver:anonymous@${repo}'" \
> +_cvs ${verbose} -z3 -d"'${repo}'" \

Otherwise, I'm fine with it.

Regards,
Yann E. MORIN.

>       co -d "'${basename}'" ${select} "'${rev}'" -P "'${rawname}'"
>  
>  tar czf "${output}" "${basename}"
> -- 
> 1.9.1
> 
> _______________________________________________
> buildroot mailing list
> buildroot at busybox.net
> http://lists.busybox.net/mailman/listinfo/buildroot

-- 
.-----------------.--------------------.------------------.--------------------.
|  Yann E. MORIN  | Real-Time Embedded | /"\ ASCII RIBBON | Erics' conspiracy: |
| +33 662 376 056 | Software  Designer | \ / CAMPAIGN     |  ___               |
| +33 223 225 172 `------------.-------:  X  AGAINST      |  \e/  There is no  |
| http://ymorin.is-a-geek.org/ | _/*\_ | / \ HTML MAIL    |   v   conspiracy.  |
'------------------------------^-------^------------------^--------------------'

  reply	other threads:[~2016-01-19 21:40 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-01-15 12:55 [Buildroot] [PATCH 1/1] support/download: Aternative access methods to CVS Joao Mano
2016-01-15 13:52 ` Thomas Petazzoni
2016-01-15 20:24   ` DATACOM - Joao
2016-01-15 20:13 ` [Buildroot] [PATCH v2] " Joao Mano
2016-01-19 21:40   ` Yann E. MORIN [this message]
2016-01-20 22:26   ` Thomas Petazzoni

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20160119214014.GF3360@free.fr \
    --to=yann.morin.1998@free.fr \
    --cc=buildroot@busybox.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox