[Fedora-livecd-list] 04userconfig.py small cleanup

Jasper O'neal Hartline jasperhartline at adelphia.net
Thu Apr 20 19:37:52 UTC 2006


Toshio Kuratomi wrote:

>It separates lokkit from ntsysv fine, but still contains duplicate code.
>This is what's there now::
>  if anaconda_args:
>      if cmdline or kickstart:
>          exit
>      Run interactive
>  else:
>      Run interactive
>
>Because the code is exiting if it finds the anaconda_args it's looking
>for we can make things simpler and remove duplicate code like so::
>  if anaconda_args:
>      if cmdline or kickstart:
>          exit
>  Run interactive
>
>  
>
Here we check if anaconda_args isn't empty, and if we aren't in cmdline 
or kickstart:
if anaconda_args != []:
    for args in anaconda_args:

Otherwise when anaconda_args is empty, we check just for lokkit and 
ntsysv, we already know cmdline
nor kickstart are in an empty anaconda_args.

J. Hartline




More information about the Fedora-livecd-list mailing list