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 > Redhat > Fedora Marketing

 
 
LinkBack Thread Tools
 
Old 04-27-2010, 02:52 PM
Chris Lumens
 
Default Don't traceback on CD-ROM driver in list-harddrives-stub (#586410).

---
command-stubs/list-harddrives-stub | 6 +++++-
1 files changed, 5 insertions(+), 1 deletions(-)

diff --git a/command-stubs/list-harddrives-stub b/command-stubs/list-harddrives-stub
index e854d6c..484428d 100755
--- a/command-stubs/list-harddrives-stub
+++ b/command-stubs/list-harddrives-stub
@@ -20,12 +20,16 @@

import sys
import parted
+import _ped

def main(argv):
lst = set()

for dev in filter(lambda d: d.type != parted.DEVICE_DM, parted.getAllDevices()):
- disk = parted.Disk(dev)
+ try:
+ disk = parted.Disk(dev)
+ except _ped.DiskLabelException:
+ continue

for part in disk.partitions:
lst.add("%s %s" % (part.path, int(part.getSize())))
--
1.7.0.1

_______________________________________________
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 11:50 AM.

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