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

Diff of /trunk/src/GLIArchitectureTemplate.py

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

Revision 111 Revision 117
1""" 1"""
2Gentoo Linux Installer 2Gentoo Linux Installer
3 3
4$Id: GLIArchitectureTemplate.py,v 1.5 2004/11/11 23:11:15 agaffney Exp $ 4$Id: GLIArchitectureTemplate.py,v 1.6 2004/11/12 06:40:21 agaffney Exp $
5Copyright 2004 Gentoo Technologies Inc. 5Copyright 2004 Gentoo Technologies Inc.
6 6
7 7
8The ArchitectureTemplate is largely meant to be an abstract class and an 8The ArchitectureTemplate is largely meant to be an abstract class and an
9interface (yes, it is both at the same time!). The purpose of this is to create 9interface (yes, it is both at the same time!). The purpose of this is to create
817 817
818 def add_partition(device, start, end, type, fs): 818 def add_partition(device, start, end, type, fs):
819 start = sectors_to_megabytes(start) 819 start = sectors_to_megabytes(start)
820 end = sectors_to_megabytes(end) 820 end = sectors_to_megabytes(end)
821 run_parted_command(device, "mkpart " + type + " " + fs + " " + str(start) + " " + str(end)) 821 run_parted_command(device, "mkpart " + type + " " + fs + " " + str(start) + " " + str(end))
822 if type == "ntfs":
823 pass
824 elif type == "ext2" or type == "ext3":
825 pass
826 else:
827 pass
822 828
823 def delete_partition(device, minor): 829 def delete_partition(device, minor):
824 run_parted_command(device, "rm " + str(minor)) 830 run_parted_command(device, "rm " + str(minor))
825 831
826 def resize_partition(device, minor, start, end, type): 832 def resize_partition(device, minor, start, end, type):

Legend:
Removed from v.111  
changed lines
  Added in v.117

  ViewVC Help
Powered by ViewVC 1.1.20