/[gli]/trunk/src/fe/gtk/Partitioning.py
Gentoo

Diff of /trunk/src/fe/gtk/Partitioning.py

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

Revision 529 Revision 530
301 if not len(self.drives): 301 if not len(self.drives):
302 part_load_error = 0 302 part_load_error = 0
303 tmp_drives = GLIStorageDevice.detect_devices() 303 tmp_drives = GLIStorageDevice.detect_devices()
304 tmp_drives.sort() 304 tmp_drives.sort()
305 for drive in tmp_drives: 305 for drive in tmp_drives:
306 try: 306# try:
307 self.devices[drive] = GLIStorageDevice.Device(drive) 307 self.devices[drive] = GLIStorageDevice.Device(drive)
308 self.devices[drive].set_partitions_from_disk() 308 self.devices[drive].set_partitions_from_disk()
309 self.detected_dev_combo.append_text(drive) 309 self.detected_dev_combo.append_text(drive)
310 self.drives.append(drive) 310 self.drives.append(drive)
311 except: 311# except:
312 print "Exception received while loading partitions" 312# print "Exception received while loading partitions"
313 if self.devices.has_key(drive): del self.devices[drive] 313# if self.devices.has_key(drive): del self.devices[drive]
314 part_load_error = 1 314# part_load_error = 1
315 if part_load_error: 315 if part_load_error:
316 if len(self.drives): 316 if len(self.drives):
317 msgdlg = gtk.MessageDialog(parent=self.controller.window, type=gtk.MESSAGE_WARN, buttons=gtk.BUTTONS_OK, message_format="One or more drives' partition tables could not be read") 317 msgdlg = gtk.MessageDialog(parent=self.controller.window, type=gtk.MESSAGE_WARN, buttons=gtk.BUTTONS_OK, message_format="One or more drives' partition tables could not be read")
318 msgdlg.run() 318 msgdlg.run()
319 msgdlg.destroy() 319 msgdlg.destroy()

Legend:
Removed from v.529  
changed lines
  Added in v.530

  ViewVC Help
Powered by ViewVC 1.1.20