summaryrefslogtreecommitdiffstats
path: root/image.py
diff options
context:
space:
mode:
authorJeremy Katz <katzj@redhat.com>2003-05-20 15:26:00 +0000
committerJeremy Katz <katzj@redhat.com>2003-05-20 15:26:00 +0000
commit1f3bf130e3705ed4d77af08cf51c12128ab5424d (patch)
tree9f5d2f3b64e7aa17b261e911cb1fff0547451e7d /image.py
parent445f36acfd30cd71b89e8ed7385b74cb9da0f2dc (diff)
downloadanaconda-1f3bf130e3705ed4d77af08cf51c12128ab5424d.tar.gz
anaconda-1f3bf130e3705ed4d77af08cf51c12128ab5424d.tar.xz
anaconda-1f3bf130e3705ed4d77af08cf51c12128ab5424d.zip
merge from taroon branch to HEAD. mostly the package stuff, but also
msw's ctrl-alt-del thing and some arch fixups
Diffstat (limited to 'image.py')
-rw-r--r--image.py12
1 files changed, 5 insertions, 7 deletions
diff --git a/image.py b/image.py
index 836c15a88..050d8589f 100644
--- a/image.py
+++ b/image.py
@@ -11,7 +11,7 @@
# Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
#
-from comps import ComponentSet, HeaderListFromFile
+from hdrlist import groupSetFromCompsFile, HeaderListFromFile
from installmethod import InstallMethod, FileCopyException
import iutil
import os
@@ -31,11 +31,9 @@ class ImageInstallMethod(InstallMethod):
def readCompsViaMethod(self, hdlist):
fname = self.findBestFileMatch(self.tree, 'comps.xml')
- #
- # XXX - we dont handle case where file wasnt found
- # instead we fail down in ComponentSet!!!
- #
- return ComponentSet(fname, hdlist)
+ if fname is None:
+ raise FileCopyException
+ return groupSetFromCompsFile(fname, hdlist)
def getFilename(self, h, timer, callback=None):
return self.tree + "/RedHat/RPMS/" + h[1000000]
@@ -102,7 +100,7 @@ class CdromInstallMethod(ImageInstallMethod):
"%s/RedHat/base/stage2.img" % self.tree)
self.loopbackFile = None
- def systemMounted(self, fsset, chroot, selected):
+ def systemMounted(self, fsset, chroot):
self.loopbackFile = "%s%s%s" % (chroot,
fsset.filesystemSpace(chroot)[0][0],
"/rhinstall-stage2.img")