diff options
author | Paul Nasrat <pnasrat@redhat.com> | 2005-11-15 02:48:07 +0000 |
---|---|---|
committer | Paul Nasrat <pnasrat@redhat.com> | 2005-11-15 02:48:07 +0000 |
commit | ae3196539760a30282a1c81d12d8452edf292a36 (patch) | |
tree | b95daaf91b92facf3138ad44826af456861f214c | |
parent | c7f542f61836d6a79837bb3a38ba93793d99e1ba (diff) | |
download | anaconda-ae3196539760a30282a1c81d12d8452edf292a36.tar.gz anaconda-ae3196539760a30282a1c81d12d8452edf292a36.tar.xz anaconda-ae3196539760a30282a1c81d12d8452edf292a36.zip |
Generate headers on split media methods
-rw-r--r-- | harddrive.py | 1 | ||||
-rw-r--r-- | image.py | 1 | ||||
-rw-r--r-- | installmethod.py | 1 | ||||
-rw-r--r-- | yuminstall.py | 6 |
4 files changed, 7 insertions, 2 deletions
diff --git a/harddrive.py b/harddrive.py index 5a5c96672..a25027d31 100644 --- a/harddrive.py +++ b/harddrive.py @@ -156,6 +156,7 @@ class HardDriveInstallMethod(InstallMethod): def __init__(self, method, rootPath, intf): """@param method hd://device:fstype:/path""" InstallMethod.__init__(self, method, rootPath, intf) + self.splitmethod = True method = method[5:] device = method[0:method.index(":")] @@ -120,6 +120,7 @@ class ImageInstallMethod(InstallMethod): def __init__(self, tree, rootPath, intf): InstallMethod.__init__(self, tree, rootPath, intf) self.tree = tree + self.splitmethod = True self.currentIso = None class CdromInstallMethod(ImageInstallMethod): diff --git a/installmethod.py b/installmethod.py index e8613e029..ca7489400 100644 --- a/installmethod.py +++ b/installmethod.py @@ -84,6 +84,7 @@ class InstallMethod: self.rootPath = rootpath self.intf = intf self.tree = None + self.splitmethod = False def getMethodUri(self): pass diff --git a/yuminstall.py b/yuminstall.py index 21a9a35de..9e9d029bb 100644 --- a/yuminstall.py +++ b/yuminstall.py @@ -311,8 +311,10 @@ class YumBackend(AnacondaBackend): self.ac = AnacondaYumConf(self.method.getMethodUri(), configfile="/tmp/yum.conf", root=instPath) self.ac.write() - - self.ayum = AnacondaYum(fn="/tmp/yum.conf", root=instPath) + if self.method.splitmethod: + self.ayum = AnacondaYumMedia(fn="/tmp/yum.conf", root=instPath) + else: + self.ayum = AnacondaYum(fn="/tmp/yum.conf", root=instPath) # FIXME: this is a bad hack until we can get something better into yum self.anaconda_grouplist = [] |