Mini Shell
3
�
Ld� � # @ sl d Z ddlZddlZddlZddlZddlmZ ddlmZ ddl m
Z
dZdZdZ
d Zd
ZdZdZd
ZdZdZdZdZdZdZdZdZdZdZdZdZdZdZ dZ!dZ"dZ#dZ$d Z%d!Z&d"Z'd#Z(d$Z)d%Z*d&Z+e+Z,e+Z-e+Z.e*Z/e/eeeeeeeeeeeeeeeeee e!e#e$e%e&e'e(e)e*ee
eee"e+d'�"Z0d(d)� Z1d7d+d,�Z2d-d.� Z3d/d0� Z4e/fd1d2�Z5e/fd3d4�Z6d5d6� Z7dS )8aQ
Methods for working with kickstart versions.
This module defines several symbolic constants that specify kickstart syntax
versions. Each version corresponds roughly to one release of Red Hat Linux,
Red Hat Enterprise Linux, or Fedora Core as these are where most syntax
changes take place.
This module also exports several functions:
makeVersion - Given a version number, return an instance of the
matching handler class.
returnClassForVersion - Given a version number, return the matching
handler class. This does not return an
instance of that class, however.
stringToVersion - Convert a string representation of a version number
into the symbolic constant.
versionToString - Perform the reverse mapping.
versionToLongString - Perform the reverse mapping but use long names.
versionFromFile - Read a kickstart file and determine the version of
syntax it uses. This requires the kickstart file to
have a version= comment in it.
� N)�_)�KickstartVersionError)�load_to_stri� i� iL i� i� i� i i� ip iX i@ i(# i'