/[gli]/trunk/src/GLIInstallProfile.py
Gentoo

Diff of /trunk/src/GLIInstallProfile.py

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

Revision 1290 Revision 1291
3# This source code is distributed under the terms of version 2 of the GNU 3# This source code is distributed under the terms of version 2 of the GNU
4# General Public License as published by the Free Software Foundation, a copy 4# General Public License as published by the Free Software Foundation, a copy
5# of which can be found in the main directory of this project. 5# of which can be found in the main directory of this project.
6Gentoo Linux Installer 6Gentoo Linux Installer
7 7
8$Id: GLIInstallProfile.py,v 1.83 2006/02/08 19:58:44 codeman Exp $ 8$Id: GLIInstallProfile.py,v 1.84 2006/02/10 02:01:58 agaffney Exp $
9 9
10The GLI module contains all classes used in the Gentoo Linux Installer (or GLI). 10The GLI module contains all classes used in the Gentoo Linux Installer (or GLI).
11The InstallProfile contains all information related to the new system to be 11The InstallProfile contains all information related to the new system to be
12installed. 12installed.
13 13
1207# else: 1207# else:
1208 if "minor" in attr.getNames(): 1208 if "minor" in attr.getNames():
1209 for attrName in attr.getNames(): 1209 for attrName in attr.getNames():
1210 part_entry[attrName] = str(attr.getValue(attrName)) 1210 part_entry[attrName] = str(attr.getValue(attrName))
1211 if type(part_entry['format']) == str: part_entry['format'] = GLIUtility.strtobool(part_entry['format']) 1211 if type(part_entry['format']) == str: part_entry['format'] = GLIUtility.strtobool(part_entry['format'])
1212 if type(part_entry['resized']) == str: part_entry['resized'] = GLIUtility.strtobool(part_entry['resized'])
1212# if GLIUtility.is_numeric(part_entry['end']): part_entry['end'] = long(part_entry['end']) 1213# if GLIUtility.is_numeric(part_entry['end']): part_entry['end'] = long(part_entry['end'])
1213# if GLIUtility.is_numeric(part_entry['start']): part_entry['start'] = long(part_entry['start']) 1214# if GLIUtility.is_numeric(part_entry['start']): part_entry['start'] = long(part_entry['start'])
1214 if GLIUtility.is_numeric(part_entry['mb']): part_entry['mb'] = long(part_entry['mb']) 1215 if GLIUtility.is_numeric(part_entry['mb']): part_entry['mb'] = long(part_entry['mb'])
1215 if GLIUtility.is_numeric(part_entry['minor']): 1216 if GLIUtility.is_numeric(part_entry['minor']):
1216 if part_entry['type'] == "free": 1217 if part_entry['type'] == "free":
1321 for device in partitions.keys(): 1322 for device in partitions.keys():
1322 self.xmldoc += "<device devnode=\"%s\" disklabel=\"%s\">" % (device, partitions[device].get_disklabel()) 1323 self.xmldoc += "<device devnode=\"%s\" disklabel=\"%s\">" % (device, partitions[device].get_disklabel())
1323 ips = partitions[device].get_install_profile_structure() 1324 ips = partitions[device].get_install_profile_structure()
1324 for minor in ips: 1325 for minor in ips:
1325 part = ips[minor] 1326 part = ips[minor]
1326 self.xmldoc += "<partition minor=\"%s\" origminor=\"%s\" mb=\"%s\" type=\"%s\" mountpoint=\"%s\" mountopts=\"%s\" format=\"%s\" mkfsopts=\"%s\" />" % (str(minor), str(part['origminor']), str(part['mb']), str(part['type']), str(part['mountpoint']), str(part['mountopts']), str(part['format']), str(part['mkfsopts'])) 1327 self.xmldoc += "<partition minor=\"%s\" origminor=\"%s\" mb=\"%s\" type=\"%s\" mountpoint=\"%s\" mountopts=\"%s\" format=\"%s\" mkfsopts=\"%s\" resized=\"%s\" />" % (str(minor), str(part['origminor']), str(part['mb']), str(part['type']), str(part['mountpoint']), str(part['mountopts']), str(part['format']), str(part['mkfsopts']), str(part['resized']))
1327 self.xmldoc += "</device>" 1328 self.xmldoc += "</device>"
1328 self.xmldoc += "</partitions>" 1329 self.xmldoc += "</partitions>"
1329 1330
1330 ############################################################################ 1331 ############################################################################
1331 #### Portage Snapshot URI 1332 #### Portage Snapshot URI

Legend:
Removed from v.1290  
changed lines
  Added in v.1291

  ViewVC Help
Powered by ViewVC 1.1.20