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

Diff of /trunk/src/GLIArchitectureTemplate.py

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

Revision 127 Revision 130
1""" 1"""
2Gentoo Linux Installer 2Gentoo Linux Installer
3 3
4$Id: GLIArchitectureTemplate.py,v 1.10 2004/11/16 05:15:15 agaffney Exp $ 4$Id: GLIArchitectureTemplate.py,v 1.11 2004/11/16 06:59:51 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
899 total_sectors = end - start + 1 899 total_sectors = end - start + 1
900 commands.getstatus("resize2fs " + device + str(minor) + " " + str(total_sectors) + "s") 900 commands.getstatus("resize2fs " + device + str(minor) + " " + str(total_sectors) + "s")
901 print "resize2fs " + device + str(minor) + " " + str(total_sectors) + "s" 901 print "resize2fs " + device + str(minor) + " " + str(total_sectors) + "s"
902 elif type == "ntfs": 902 elif type == "ntfs":
903 total_sectors = end - start + 1 903 total_sectors = end - start + 1
904 total_kibibytes = self._sectors_to_kibibytes(total_sectors) 904 total_kibibytes = int(self._sectors_to_kibibytes(total_sectors))
905 commands.getstatus("ntfsresize --size " + str(total_kibibytes) + "k " + device + str(minor)) 905 commands.getstatus("ntfsresize --size " + str(total_kibibytes) + "k " + device + str(minor))
906 print "ntfsresize --size " + str(total_kibibytes) + "k " + device + str(minor) 906 print "ntfsresize --size " + str(total_kibibytes) + "k " + device + str(minor)
907 else: 907 else:
908 start = float(self._sectors_to_megabytes(start)) 908 start = float(self._sectors_to_megabytes(start))
909 end = float(self._sectors_to_megabytes(end)) 909 end = float(self._sectors_to_megabytes(end))

Legend:
Removed from v.127  
changed lines
  Added in v.130

  ViewVC Help
Powered by ViewVC 1.1.20