diff --git a/pisi/build.py b/pisi/build.py index 20ab02fe..4caeac01 100644 --- a/pisi/build.py +++ b/pisi/build.py @@ -124,7 +124,6 @@ class PisiBuild: if depth < len(path.pathname): depth = len(path.pathname) ftype = path.fileType - print fpath, ftype, fhash files.append(FileInfo(fpath, ftype, fhash)) files.write(os.path.join(self.ctx.pkg_dir(),"files.xml")) diff --git a/pisi/files.py b/pisi/files.py index f3a881fc..f8bf29e6 100644 --- a/pisi/files.py +++ b/pisi/files.py @@ -53,7 +53,9 @@ class Files(XmlFile): def write(self, filename): self.newDOM() + document = self.dom.documentElement for x in self.list: - print x.elt(self.dom) + document.appendChild(x.elt(self.dom)) + self.writexml(filename)