summaryrefslogtreecommitdiffstats
path: root/image.py
blob: 31b1fb1f2698029394baaab6d648678e16340866 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
# Install method for disk image installs (CD & NFS)

from comps import ComponentSet, HeaderListFromFile

class InstallMethod:

    def readComps(self, hdlist):
	return ComponentSet('i386', self.tree + '/RedHat/base/comps', hdlist)

    def getFilename(self, h):
	return self.tree + "/RedHat/RPMS/" + h[1000000]

    def readHeaders(self):
	return HeaderListFromFile(self.tree + "/RedHat/base/hdlist")

    def targetFstab(self, fstab):
	pass

    def filesDone(self):
	pass

    def unlinkFilename(self, fullName):
	pass

    def __init__(self, tree):
	self.tree = tree