diff options
author | Chris Lumens <clumens@redhat.com> | 2009-03-13 13:34:13 -0400 |
---|---|---|
committer | Chris Lumens <clumens@redhat.com> | 2009-03-13 14:26:57 -0400 |
commit | 12c4fb21429e61fc0dedbd8e3fd2a2f0d3e3eeac (patch) | |
tree | 49266004e7465b89547982458ed990675cb95cba /booty | |
parent | 4f7ad077b523a0dbb1ace6339720f875dec6574f (diff) | |
download | anaconda-12c4fb21429e61fc0dedbd8e3fd2a2f0d3e3eeac.tar.gz anaconda-12c4fb21429e61fc0dedbd8e3fd2a2f0d3e3eeac.tar.xz anaconda-12c4fb21429e61fc0dedbd8e3fd2a2f0d3e3eeac.zip |
Add mediaPresent and eject to the OpticalDevice class.
These no longer belong in isys.py as putting them in the classes is much
more correct. I also put a mediaPresent method on Device in general.
This will come in handy when we start dealing with USB CF readers and
similar devices that can be present without having media.
Diffstat (limited to 'booty')
-rw-r--r-- | booty/bootloaderInfo.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/booty/bootloaderInfo.py b/booty/bootloaderInfo.py index 2fdf16ab7..d1147348c 100644 --- a/booty/bootloaderInfo.py +++ b/booty/bootloaderInfo.py @@ -453,7 +453,7 @@ class bootloaderInfo: f.write("\n") def updateDriveList(self, sortedList=[]): - self._drivelist = map(lambda x: x.name, filter(lambda x: isys.mediaPresent(x.name), self.storage.disks)) + self._drivelist = map(lambda x: x.name, filter(lambda dev: dev.mediaPresent, self.storage.disks)) self._drivelist.sort(isys.compareDrives) # If we're given a sort order, make sure the drives listed in it |