FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.


» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > Ubuntu > Ubuntu User

 
 
LinkBack Thread Tools
 
Old 12-05-2007, 10:24 PM
Bill Nottingham
 
Default Use isys.removableDriveDict() for exceptionDisks.

---
partedUtils.py | 6 ++----
1 files changed, 2 insertions(+), 4 deletions(-)

diff --git a/partedUtils.py b/partedUtils.py
index 9e47788..b5bec5a 100644
--- a/partedUtils.py
+++ b/partedUtils.py
@@ -1342,10 +1342,8 @@ class DiskSet:
self.refreshDevices()
isys.flushDriveDict()

- drives = isys.floppyDriveDict().items()
-
- for d in isys.hardDriveDict().items():
- if isys.driveUsesModule(d[0], ["usb-storage", "ub", "sbp2", "firewire-sbp2"]):
+ drives = []
+ for d in isys.removableDriveDict().items():
func = lambda p: not p.get_flag(parted.PARTITION_RAID) and not p.get_flag(parted.PARTITION_LVM) and p.fs_type.name in ["ext3", "ext2", "vfat"]

disk = self.disks[d[0]]
--
1.5.3.4

_______________________________________________
Anaconda-devel-list mailing list
Anaconda-devel-list@redhat.com
https://www.redhat.com/mailman/listinfo/anaconda-devel-list
 

Thread Tools




All times are GMT. The time now is 04:02 AM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright 2007 - 2008, www.linux-archive.org