summaryrefslogtreecommitdiffstats
path: root/image.py
blob: 84834cfb1f8d9d0c1994a1bfe3de74303303fc6f (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(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