From 861dad0aea82c8600688d9faa90927c5d5233125 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bar=C4=B1=C5=9F=20Metin?= Date: Tue, 21 Jun 2005 13:57:00 +0000 Subject: [PATCH] =?UTF-8?q?files.xml=20art=C4=B1k=20olu=C5=9Fturuluyor.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pisi/build.py | 1 - pisi/files.py | 4 +++- 2 files changed, 3 insertions(+), 2 deletions(-) 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)