All of lore.kernel.org
 help / color / mirror / Atom feed
From: Ulf Magnusson <ulfalizer@gmail.com>
To: buildroot@busybox.net
Subject: [Buildroot] [PATCH 3/3] support: get prompts via official Kconfiglib APIs
Date: Wed, 10 Jun 2015 15:05:11 +0200	[thread overview]
Message-ID: <1433941511-15596-3-git-send-email-ulfalizer@gmail.com> (raw)
In-Reply-To: <1433941511-15596-1-git-send-email-ulfalizer@gmail.com>

These weren't available when gen-manual-lists.py was first written.

Signed-off-by: Ulf Magnusson <ulfalizer@gmail.com>
---
 support/scripts/gen-manual-lists.py | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)

diff --git a/support/scripts/gen-manual-lists.py b/support/scripts/gen-manual-lists.py
index 2acac2c..d45810b 100644
--- a/support/scripts/gen-manual-lists.py
+++ b/support/scripts/gen-manual-lists.py
@@ -99,7 +99,7 @@ def get_symbol_parents(item, root=None, enable_choice=False):
         if parent.is_menu():
             parents.append(parent.get_title())
         elif enable_choice and parent.is_choice():
-            parents.append(parent.prompts[0][0])
+            parents.append(parent.get_prompts()[0])
         parent = parent.get_parent()
     if isinstance(root, kconfiglib.Menu) or \
             (enable_choice and isinstance(root, kconfiglib.Choice)):
@@ -234,9 +234,9 @@ class Buildroot:
         """
         if not symbol.is_symbol():
             return False
-        if type == 'real' and not symbol.prompts:
+        if type == 'real' and not symbol.get_prompts():
             return False
-        if type == 'virtual' and symbol.prompts:
+        if type == 'virtual' and symbol.get_prompts():
             return False
         if not self.re_pkg_prefix.match(symbol.get_name()):
             return False
@@ -315,7 +315,7 @@ class Buildroot:
         :param mark_deprecated: Append a 'deprecated' to the label
 
         """
-        label = symbol.prompts[0][0]
+        label = symbol.get_prompts()[0]
         if self._is_deprecated(symbol) and mark_deprecated:
             label += " *(deprecated)*"
         return label
@@ -394,7 +394,7 @@ class Buildroot:
                     continue
                 for s in selects:
                     if s == symbol:
-                        if sym.prompts:
+                        if sym.get_prompts():
                             l = self._get_symbol_label(sym,False)
                             parent_pkg = _get_parent_package(sym)
                             if parent_pkg is not None:
-- 
2.1.4

  parent reply	other threads:[~2015-06-10 13:05 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-06-10 13:05 [Buildroot] [PATCH 1/3] support: update Kconfiglib to the latest version Ulf Magnusson
2015-06-10 13:05 ` [Buildroot] [PATCH 2/3] support: gen-manual-lists.py base directory simplification Ulf Magnusson
2015-06-11 20:12   ` Thomas Petazzoni
2015-06-10 13:05 ` Ulf Magnusson [this message]
2015-06-11 20:12   ` [Buildroot] [PATCH 3/3] support: get prompts via official Kconfiglib APIs Thomas Petazzoni
2015-06-10 13:15 ` [Buildroot] [PATCH 1/3] support: update Kconfiglib to the latest version Baruch Siach
2015-06-10 13:30   ` Ulf Magnusson

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=1433941511-15596-3-git-send-email-ulfalizer@gmail.com \
    --to=ulfalizer@gmail.com \
    --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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.