bits is an integer and replace needs arguments to be strings (#697542)

This commit is contained in:
Martin Gracik 2011-04-19 08:44:01 +02:00
parent 4271a37e9a
commit 09d6569fd3

View File

@ -193,7 +193,7 @@ class PPC(object):
dst = joinpaths(self.outputroot, ppcdir, "yaboot.conf") dst = joinpaths(self.outputroot, ppcdir, "yaboot.conf")
yabootconf = cpfile(self.reqs["yabootconf"], dst) yabootconf = cpfile(self.reqs["yabootconf"], dst)
replace(yabootconf, r"%BITS%", bits) replace(yabootconf, r"%BITS%", str(bits))
replace(yabootconf, r"%PRODUCT%", self.product) replace(yabootconf, r"%PRODUCT%", self.product)
replace(yabootconf, r"%VERSION%", self.version) replace(yabootconf, r"%VERSION%", self.version)