[anaconda] Export the pykickstart Eula command

Chris Lumens clumens at redhat.com
Mon Sep 23 18:31:03 UTC 2013


> diff --git a/pyanaconda/kickstart.py b/pyanaconda/kickstart.py
> index 05e855d..13160d9 100644
> --- a/pyanaconda/kickstart.py
> +++ b/pyanaconda/kickstart.py
> @@ -625,6 +625,10 @@ class Lang(commands.lang.F19_Lang):
>      def execute(self, *args, **kwargs):
>          localization.write_language_configuration(self, ROOT_PATH)
>  
> +class Eula(commands.eula.F20_Eula):
> +    # no overrides needed here
> +    pass
> +
>  class LogVol(commands.logvol.F20_LogVol):
>      def execute(self, storage, ksdata, instClass):
>          for l in self.lvList:

You could simplify this to:

class Eula = commands.eula.F20_Eula

Though, you would still want to comment on it so we know what's going on
here.  I don't guess we can just skip having to do this and have
initial-setup look at pykickstart for the class, huh?

- Chris


More information about the anaconda-patches mailing list