files.xml artık oluşturuluyor.
This commit is contained in:
@@ -124,7 +124,6 @@ class PisiBuild:
|
|||||||
if depth < len(path.pathname):
|
if depth < len(path.pathname):
|
||||||
depth = len(path.pathname)
|
depth = len(path.pathname)
|
||||||
ftype = path.fileType
|
ftype = path.fileType
|
||||||
print fpath, ftype, fhash
|
|
||||||
files.append(FileInfo(fpath, ftype, fhash))
|
files.append(FileInfo(fpath, ftype, fhash))
|
||||||
files.write(os.path.join(self.ctx.pkg_dir(),"files.xml"))
|
files.write(os.path.join(self.ctx.pkg_dir(),"files.xml"))
|
||||||
|
|
||||||
|
|||||||
+3
-1
@@ -53,7 +53,9 @@ class Files(XmlFile):
|
|||||||
|
|
||||||
def write(self, filename):
|
def write(self, filename):
|
||||||
self.newDOM()
|
self.newDOM()
|
||||||
|
document = self.dom.documentElement
|
||||||
for x in self.list:
|
for x in self.list:
|
||||||
print x.elt(self.dom)
|
document.appendChild(x.elt(self.dom))
|
||||||
|
self.writexml(filename)
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user