summaryrefslogtreecommitdiffstats
path: root/harddrive.py
diff options
context:
space:
mode:
Diffstat (limited to 'harddrive.py')
-rw-r--r--harddrive.py7
1 files changed, 4 insertions, 3 deletions
diff --git a/harddrive.py b/harddrive.py
index 5cca25b29..c50c62bc4 100644
--- a/harddrive.py
+++ b/harddrive.py
@@ -60,8 +60,8 @@ class OldHardDriveInstallMethod(InstallMethod):
def readCompsViaMethod(self, hdlist):
self.mountMedia()
- cs = ComponentSet(self.tree + self.path +
- '/RedHat/base/comps.xml', hdlist)
+ fname = self.findBestFileMatch(self.tree + self.path, 'comps.xml')
+ cs = ComponentSet(fname, hdlist)
self.umountMedia()
return cs
@@ -163,7 +163,8 @@ class HardDriveInstallMethod(InstallMethod):
def readCompsViaMethod(self, hdlist):
self.mountMedia(1)
- cs = ComponentSet(self.tree + '/RedHat/base/comps.xml', hdlist)
+ fname = self.findBestFileMatch(self.tree, 'comps.xml')
+ cs = ComponentSet(fname, hdlist)
self.umountMedia()
return cs