コード例 #1
0
ファイル: addons.py プロジェクト: mairin/anaconda
    def handleHeader(self, lineno, args):
        """Process the arguments to the %addon header."""
        Section.handleHeader(self, lineno, args)
        op = KSOptionParser(version=self.version)
        (_opts, extra) = op.parse_args(args=args[1:], lineno=lineno)
        self.addon_id = extra[0]

        # if the addon is not registered, create dummy placeholder for it
        if self.addon_id and not hasattr(self.handler.addons, self.addon_id):
            setattr(self.handler.addons, self.addon_id, AddonData(self.addon_id))
コード例 #2
0
ファイル: kickstart.py プロジェクト: sofat1989/anaconda
    def handleHeader(self, lineno, args):
        """Process the arguments to the %anaconda header."""
        Section.handleHeader(self, lineno, args)

        warnings.warn(
            _("The %%anaconda section has been deprecated. It "
              "may be removed from future releases, which will "
              "result in a fatal error when it is encountered. "
              "Please modify your kickstart file to remove this "
              "section."), KickstartDeprecationWarning)
コード例 #3
0
    def handleHeader(self, lineno, args):
        """Process the arguments to the %addon header."""
        Section.handleHeader(self, lineno, args)
        op = KSOptionParser(version=self.version)
        (_opts, extra) = op.parse_args(args=args[1:], lineno=lineno)
        self.addon_id = extra[0]

        # if the addon is not registered, create dummy placeholder for it
        if self.addon_id and not hasattr(self.handler.addons, self.addon_id):
            setattr(self.handler.addons, self.addon_id,
                    AddonData(self.addon_id))
コード例 #4
0
ファイル: addons.py プロジェクト: bwann/anaconda
    def handleHeader(self, lineno, args):
        """Process the arguments to the %addon header."""
        Section.handleHeader(self, lineno, args)
        self.addon_id = args[1]

        # if the addon is not registered, create dummy placeholder for it
        if self.addon_id and not hasattr(self.handler.addons, self.addon_id):
            setattr(self.handler.addons, self.addon_id, AddonData(self.addon_id))

        # Parse additional arguments to %addon with the AddonData handler
        addon = getattr(self.handler.addons, self.addon_id)
        addon.handle_header(lineno, args[2:])
コード例 #5
0
ファイル: addons.py プロジェクト: Jakuje/anaconda
    def handleHeader(self, lineno, args):
        """Process the arguments to the %addon header."""
        Section.handleHeader(self, lineno, args)
        self.addon_id = args[1]

        # If the addon is not registered, create dummy placeholder for it.
        # If not replaced, the placeholder will be removed in the setup method.
        if self.addon_id and not hasattr(self.handler.addons, self.addon_id):
            setattr(self.handler.addons, self.addon_id, AddonData(PLACEHOLDER_NAME))

        # Parse additional arguments to %addon with the AddonData handler
        addon = getattr(self.handler.addons, self.addon_id)
        addon.handle_header(lineno, args[2:])
コード例 #6
0
ファイル: addons.py プロジェクト: yaneti/anaconda
    def handleHeader(self, lineno, args):
        """Process the arguments to the %addon header."""
        Section.handleHeader(self, lineno, args)
        self.addon_id = args[1]

        # If the addon is not registered, create dummy placeholder for it.
        # If not replaced, the placeholder will be removed in the setup method.
        if self.addon_id and not hasattr(self.handler.addons, self.addon_id):
            setattr(self.handler.addons, self.addon_id,
                    AddonData(PLACEHOLDER_NAME))

        # Parse additional arguments to %addon with the AddonData handler
        addon = getattr(self.handler.addons, self.addon_id)
        addon.handle_header(lineno, args[2:])
コード例 #7
0
ファイル: addons.py プロジェクト: bwann/anaconda
    def finalize(self):
        """Let addon know no additional data will come."""
        Section.finalize(self)

        addon = getattr(self.handler.addons, self.addon_id)
        addon.finalize()
コード例 #8
0
ファイル: addons.py プロジェクト: bwann/anaconda
 def __init__(self, *args, **kwargs):
     Section.__init__(self, *args, **kwargs)
     self.addon_id = None
コード例 #9
0
 def finalize(self):
     """Let %anaconda know no additional data will come."""
     Section.finalize(self)
コード例 #10
0
 def handleHeader(self, lineno, args):
     """Process the arguments to the %anaconda header."""
     Section.handleHeader(self, lineno, args)
コード例 #11
0
ファイル: kickstart.py プロジェクト: rvykydal/anaconda
 def finalize(self):
     """Let %anaconda know no additional data will come."""
     Section.finalize(self)
コード例 #12
0
ファイル: kickstart.py プロジェクト: rvykydal/anaconda
 def handleHeader(self, lineno, args):
     """Process the arguments to the %anaconda header."""
     Section.handleHeader(self, lineno, args)