/[gli]/branches/overhaul/src/Partitioning.py
Gentoo

Diff of /branches/overhaul/src/Partitioning.py

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

Revision 1694 Revision 1695
178 newidx = self.add_partition(freeidx, newpart['size'], newpart['type']) 178 newidx = self.add_partition(freeidx, newpart['size'], newpart['type'])
179 for i, mount in enumerate(localmounts): 179 for i, mount in enumerate(localmounts):
180 if mount['devnode'] == self._partitions[newidx]['devnode']: 180 if mount['devnode'] == self._partitions[newidx]['devnode']:
181 del localmounts[i] 181 del localmounts[i]
182 break 182 break
183 localmounts.append({ 'devnode': self._partitions[newidx]['devnode'], 'type': parted_type_map.get(newpart['type'], newpart['type']), 'mountpoint': newpart['mountpoint'], mountopts: newpart['mountopts'] }) 183 localmounts.append({ 'devnode': self._partitions[newidx]['devnode'], 'type': parted_type_map.get(newpart['type'], newpart['type']), 'mountpoint': newpart['mountpoint'], 'mountopts': newpart['mountopts'] })
184 self._install_profile.set_mounts(localmounts) 184 self._install_profile.set_mounts(localmounts)
185 185
186 def _megabytes_to_sectors(self, mb, sector_bytes=512): 186 def _megabytes_to_sectors(self, mb, sector_bytes=512):
187 return long(mb * MEGABYTE / sector_bytes) 187 return long(mb * MEGABYTE / sector_bytes)
188 188

Legend:
Removed from v.1694  
changed lines
  Added in v.1695

  ViewVC Help
Powered by ViewVC 1.1.20