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 > ArchLinux > ArchLinux User Repository

 
 
LinkBack Thread Tools
 
Old 08-03-2011, 10:58 PM
David Lehman
 
Default Don't traceback whenever unpartitioned disks are present. (#727573)

---
pyanaconda/bootloader.py | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/pyanaconda/bootloader.py b/pyanaconda/bootloader.py
index ab89d51..6573d70 100644
--- a/pyanaconda/bootloader.py
+++ b/pyanaconda/bootloader.py
@@ -390,8 +390,8 @@ class BootLoader(object):
ret = True
if self.disklabel_types:
for disk in device.disks:
- label_type = disk.format.labelType
- if label_type not in self.disklabel_types:
+ label_type = getattr(disk.format, "labelType", None)
+ if label_type and label_type not in self.disklabel_types:
types_str = ",".join(disklabel_types)
self.errors.append(_("%s must have one of the following "
"disklabel types: %s.")
--
1.7.3.4

_______________________________________________
Anaconda-devel-list mailing list
Anaconda-devel-list@redhat.com
https://www.redhat.com/mailman/listinfo/anaconda-devel-list
 
Old 08-04-2011, 06:24 AM
Ales Kozumplik
 
Default Don't traceback whenever unpartitioned disks are present. (#727573)

On 08/04/2011 12:58 AM, David Lehman wrote:

---
pyanaconda/bootloader.py | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/pyanaconda/bootloader.py b/pyanaconda/bootloader.py
index ab89d51..6573d70 100644
--- a/pyanaconda/bootloader.py
+++ b/pyanaconda/bootloader.py
@@ -390,8 +390,8 @@ class BootLoader(object):
ret = True
if self.disklabel_types:
for disk in device.disks:
- label_type = disk.format.labelType
- if label_type not in self.disklabel_types:
+ label_type = getattr(disk.format, "labelType", None)
+ if label_type and label_type not in self.disklabel_types:
types_str = ",".join(disklabel_types)
self.errors.append(_("%s must have one of the following "
"disklabel types: %s.")



Ack.

Ales

_______________________________________________
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 03:46 AM.

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