From 518e8016997a00989230cb70a149d8d91a208193 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bar=C4=B1=C5=9F=20Metin?= Date: Mon, 20 Jun 2005 12:35:38 +0000 Subject: [PATCH] =?UTF-8?q?-=20yaln=C4=B1zca=20action=20betiklerini=20?= =?UTF-8?q?=C3=A7al=C4=B1=C5=9Ft=C4=B1rmak=20i=C3=A7in=20dizin=20de=C4=9Fi?= =?UTF-8?q?=C5=9Ftir.=20Sonra=20=20=20efendi=20gibi=20geri=20d=C3=B6n.=20-?= =?UTF-8?q?=20metadata=20ve=20files=20dosyalar=C4=B1n=C4=B1=20olu=C5=9Ftur?= =?UTF-8?q?acak=20fonksiyonlar=C4=B1=20haz=C4=B1rlamaya=20ba=C5=9Fla.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pisi/build.py | 20 +++++++++++++++++--- 1 file changed, 17 insertions(+), 3 deletions(-) diff --git a/pisi/build.py b/pisi/build.py index ed4c1e19..5b74fd98 100644 --- a/pisi/build.py +++ b/pisi/build.py @@ -57,7 +57,11 @@ class PisiBuild: except IOError, e: ui.error ("Action Script: %s\n" % e) return - + + #we'll need this our working directory after actionscript + #finished its work in the work_dir + curDir = os.getcwd() + # FIXME: It's wrong to assume that unpacked archive # will create a name-version top-level directory. # Archive module should give the exact location. @@ -75,9 +79,10 @@ class PisiBuild: self.buildSource(locals) self.installSource(locals) + os.chdir(curDir) # after all, we are ready to build/prepare the packages - # self.genMetaDataXml() - # self.genFilesXml() + self.genMetaDataXml() + self.genFilesXml() self.buildPackages() def fetchArchive(self, percentHook=None): @@ -128,6 +133,15 @@ class PisiBuild: if func in locals: ui.info("Installing %s...\n" % self.spec.source.name) locals[func]() + + def genMetaDataXml(self): + #test + d = self.ctx.pkg_install_dir() + c = util.dir_size(d) + print d, c + + def genFilesXml(self): + pass def buildPackages(self): for package in self.spec.packages: