FAQ Search Today's Posts Mark Forums Read

» Linux Archive
Home
New Posts
Search
FAQ


Go Back   Linux Archive > Debian > Debian Kernel

 
 
LinkBack Thread Tools
 
Old 02-08-2010, 01:53 PM
Hans de Goede
 
Default platform.checkBootRequest(): Fix use of map instead of filter

---
platform.py | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/platform.py b/platform.py
index a19ce36..3805402 100644
--- a/platform.py
+++ b/platform.py
@@ -140,7 +140,7 @@ class Platform(object):
errors.append(_("Bootable partitions cannot be on an encrypted block device"))
else:
# Handle encrypted boot on more complicated devices.
- for dev in map(lambda d: d.type == "luks/dm-crypt", self.anaconda.id.storage.devices):
+ for dev in filter(lambda d: d.type == "luks/dm-crypt", self.anaconda.id.storage.devices):
if req in self.anaconda.id.storage.deviceDeps(dev):
errors.append(_("Bootable partitions cannot be on an encrypted block device"))

--
1.6.6

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

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