The Samba-Bugzilla – Attachment 8780 Details for
Bug 9804
wafsamba: display the default value in help for SAMBA3_ADD_OPTION
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Proposed patch written by Metze incl. cherry-pick information
0001-wafsamba-display-the-default-value-in-help-for-SAMBA.patch (text/plain), 1.29 KB, created by
Karolin Seeger
on 2013-04-17 09:58:35 UTC
(
hide
)
Description:
Proposed patch written by Metze incl. cherry-pick information
Filename:
MIME Type:
Creator:
Karolin Seeger
Created:
2013-04-17 09:58:35 UTC
Size:
1.29 KB
patch
obsolete
>From 353f53be825e54628faef93c0fbd616f5fb76635 Mon Sep 17 00:00:00 2001 >From: Stefan Metzmacher <metze@samba.org> >Date: Fri, 22 Mar 2013 09:37:09 +0100 >Subject: [PATCH] wafsamba: display the default value in help for > SAMBA3_ADD_OPTION > >Signed-off-by: Stefan Metzmacher <metze@samba.org> >Reviewed-by: Volker Lendecke <vl@samba.org> >(cherry picked from commit 81cc940c994424d351ac282383df4d1a57d6b614) >--- > buildtools/wafsamba/samba3.py | 11 ++++++++++- > 1 file changed, 10 insertions(+), 1 deletion(-) > >diff --git a/buildtools/wafsamba/samba3.py b/buildtools/wafsamba/samba3.py >index 476d8fc..fd063ad 100644 >--- a/buildtools/wafsamba/samba3.py >+++ b/buildtools/wafsamba/samba3.py >@@ -8,8 +8,17 @@ from samba_autoconf import library_flags > > def SAMBA3_ADD_OPTION(opt, option, help=(), dest=None, default=True, > with_name="with", without_name="without"): >+ if default is None: >+ default_str="auto" >+ elif default == True: >+ default_str="yes" >+ elif default == False: >+ default_str="no" >+ else: >+ default_str=str(default) >+ > if help == (): >- help = ("Build with %s support" % option) >+ help = ("Build with %s support (default=%s)" % (option, default_str)) > if dest is None: > dest = "with_%s" % option.replace('-', '_') > >-- >1.7.10.4 >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Flags:
metze
:
review+
vl
:
review+
Actions:
View
Attachments on
bug 9804
: 8780