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 > Debian > Debian Development

 
 
LinkBack Thread Tools
 
Old 03-12-2009, 03:16 AM
David Cantrell
 
Default Make sure the device has a diskType before attempting to check what it is.

Looks good.

On 03/11/2009 10:32 AM, Chris Lumens wrote:

---
storage/devicetree.py | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/storage/devicetree.py b/storage/devicetree.py
index e974717..45601a6 100644
--- a/storage/devicetree.py
+++ b/storage/devicetree.py
@@ -751,7 +751,7 @@ class DeviceTree(object):
if isinstance(dep, PartitionDevice):
# collect all of the logicals on the same disk
for part in self.getDevicesByInstance(PartitionDevice):
- if part.isLogical and part.disk == dep.disk:
+ if part.partType and part.isLogical and part.disk == dep.disk:
logicals.append(part)

for device in self.devices.values():



--
David Cantrell <dcantrell@redhat.com>
Red Hat / Honolulu, HI

_______________________________________________
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 02:27 AM.

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