* [Buildroot] [PATCH 1/1] support/download: svn non-interactive in BR2_SVN
@ 2017-11-17 18:50 Sam Voss
2017-11-25 15:11 ` Yann E. MORIN
2017-11-26 13:41 ` Thomas Petazzoni
0 siblings, 2 replies; 3+ messages in thread
From: Sam Voss @ 2017-11-17 18:50 UTC (permalink / raw)
To: buildroot
Instead of overriding the _svn command and injecting --non-interactive,
change the default value of BR2_SVN to include this flag so the end user
can choose not to use the flag.
This change helps users behind corporate system rules which may not
allow them to locally cache credentials and require interactive mode.
Signed-off-by: Sam Voss <sam.voss@rockwellcollins.com>
[Originally implemented by]
CC: "Yann E. MORIN" <yann.morin.1998@free.fr>
---
Config.in | 2 +-
support/download/svn | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/Config.in b/Config.in
index 90f793a..d192995 100644
--- a/Config.in
+++ b/Config.in
@@ -106,7 +106,7 @@ config BR2_WGET
config BR2_SVN
string "Subversion (svn) command"
- default "svn"
+ default "svn --non-interactive"
config BR2_BZR
string "Bazaar (bzr) command"
diff --git a/support/download/svn b/support/download/svn
index ee799f4..ad84a39 100755
--- a/support/download/svn
+++ b/support/download/svn
@@ -33,7 +33,7 @@ _svn() {
eval ${SVN} "${@}"
}
-_svn --non-interactive export ${verbose} "${@}" "'${repo}@${rev}'" "'${basename}'"
+_svn export ${verbose} "${@}" "'${repo}@${rev}'" "'${basename}'"
# If this is a HEAD revision, export the exact version
# that was checked out.
--
1.9.1
^ permalink raw reply related [flat|nested] 3+ messages in thread
* [Buildroot] [PATCH 1/1] support/download: svn non-interactive in BR2_SVN
2017-11-17 18:50 [Buildroot] [PATCH 1/1] support/download: svn non-interactive in BR2_SVN Sam Voss
@ 2017-11-25 15:11 ` Yann E. MORIN
2017-11-26 13:41 ` Thomas Petazzoni
1 sibling, 0 replies; 3+ messages in thread
From: Yann E. MORIN @ 2017-11-25 15:11 UTC (permalink / raw)
To: buildroot
Sam, All,
On 2017-11-17 12:50 -0600, Sam Voss spake thusly:
> Instead of overriding the _svn command and injecting --non-interactive,
> change the default value of BR2_SVN to include this flag so the end user
> can choose not to use the flag.
>
> This change helps users behind corporate system rules which may not
> allow them to locally cache credentials and require interactive mode.
>
> Signed-off-by: Sam Voss <sam.voss@rockwellcollins.com>
>
> [Originally implemented by]
> CC: "Yann E. MORIN" <yann.morin.1998@free.fr>
Thomas, since this is my code: ;-)
Acked-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
Regards,
Yann E. MORIN.
> ---
> Config.in | 2 +-
> support/download/svn | 2 +-
> 2 files changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/Config.in b/Config.in
> index 90f793a..d192995 100644
> --- a/Config.in
> +++ b/Config.in
> @@ -106,7 +106,7 @@ config BR2_WGET
>
> config BR2_SVN
> string "Subversion (svn) command"
> - default "svn"
> + default "svn --non-interactive"
>
> config BR2_BZR
> string "Bazaar (bzr) command"
> diff --git a/support/download/svn b/support/download/svn
> index ee799f4..ad84a39 100755
> --- a/support/download/svn
> +++ b/support/download/svn
> @@ -33,7 +33,7 @@ _svn() {
> eval ${SVN} "${@}"
> }
>
> -_svn --non-interactive export ${verbose} "${@}" "'${repo}@${rev}'" "'${basename}'"
> +_svn export ${verbose} "${@}" "'${repo}@${rev}'" "'${basename}'"
>
> # If this is a HEAD revision, export the exact version
> # that was checked out.
> --
> 1.9.1
>
--
.-----------------.--------------------.------------------.--------------------.
| 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. |
'------------------------------^-------^------------------^--------------------'
^ permalink raw reply [flat|nested] 3+ messages in thread
* [Buildroot] [PATCH 1/1] support/download: svn non-interactive in BR2_SVN
2017-11-17 18:50 [Buildroot] [PATCH 1/1] support/download: svn non-interactive in BR2_SVN Sam Voss
2017-11-25 15:11 ` Yann E. MORIN
@ 2017-11-26 13:41 ` Thomas Petazzoni
1 sibling, 0 replies; 3+ messages in thread
From: Thomas Petazzoni @ 2017-11-26 13:41 UTC (permalink / raw)
To: buildroot
Hello,
On Fri, 17 Nov 2017 12:50:34 -0600, Sam Voss wrote:
> Instead of overriding the _svn command and injecting --non-interactive,
> change the default value of BR2_SVN to include this flag so the end user
> can choose not to use the flag.
>
> This change helps users behind corporate system rules which may not
> allow them to locally cache credentials and require interactive mode.
>
> Signed-off-by: Sam Voss <sam.voss@rockwellcollins.com>
>
> [Originally implemented by]
> CC: "Yann E. MORIN" <yann.morin.1998@free.fr>
> ---
> Config.in | 2 +-
> support/download/svn | 2 +-
> 2 files changed, 2 insertions(+), 2 deletions(-)
I hesitated a bit between master and next to apply this patch. But
since this is basically fixing/adjusting a change that is in master, I
opted for merging that in master so that we don't change two times the
behavior in two consecutive releases.
So: applied to master. Thanks!
Thomas
--
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2017-11-26 13:41 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-11-17 18:50 [Buildroot] [PATCH 1/1] support/download: svn non-interactive in BR2_SVN Sam Voss
2017-11-25 15:11 ` Yann E. MORIN
2017-11-26 13:41 ` Thomas Petazzoni
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox