pykickstart.version | index /usr/lib/python2.6/site-packages/pykickstart/version.py |
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.
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.
Modules | ||||||
|
Functions | ||
|
Data | ||
DEVEL = 11000 F10 = 8000 F11 = 9000 F12 = 10000 F13 = 11000 F7 = 5000 F8 = 6000 F9 = 7000 FC3 = 1000 FC4 = 2000 FC5 = 3000 FC6 = 4000 RHEL3 = 900 RHEL4 = 1100 RHEL5 = 4100 RHEL6 = 11100 versionMap = {'DEVEL': 11000, 'F10': 8000, 'F11': 9000, 'F12': 10000, 'F13': 11000, 'F7': 5000, 'F8': 6000, 'F9': 7000, 'FC3': 1000, 'FC4': 2000, ...} |