From f3731b6be1a20f12cd752c1abadf935da7596e34 Mon Sep 17 00:00:00 2001 From: Chris Lumens Date: Mon, 8 Dec 2008 11:39:13 -0500 Subject: Handle both /dev/sr0 and sr0, since that's what cdromList gives (#475083). --- isys/isys.py | 3 +++ 1 file changed, 3 insertions(+) (limited to 'isys') diff --git a/isys/isys.py b/isys/isys.py index c7cf25b77..589461764 100755 --- a/isys/isys.py +++ b/isys/isys.py @@ -788,6 +788,9 @@ def ext2HasJournal(device): return hasjournal def ejectCdrom(device): + if not os.path.exists(device): + device = "/dev/%s" % device + fd = os.open(device, os.O_RDONLY|os.O_NONBLOCK) # this is a best effort -- cgit