From 273e039972bd54e39c7a0d7e4c9879bb6e3d564f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bar=C4=B1=C5=9F=20Metin?= Date: Mon, 20 Jun 2005 23:01:25 +0000 Subject: [PATCH] =?UTF-8?q?k=C3=BC=C3=A7=C3=BCk=20bir=20d=C3=BCzeltme?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pisi/build.py | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/pisi/build.py b/pisi/build.py index b6a3e430..706e7e04 100644 --- a/pisi/build.py +++ b/pisi/build.py @@ -110,7 +110,7 @@ class PisiBuild: def unpackArchive(self): fileName = os.path.basename(self.ctx.spec.source.archiveUri) filePath = self.ctx.archives_dir() + '/' + fileName - archive = Archive(filePath, ctx.spec.source.archiveType) + archive = Archive(filePath, self.ctx.spec.source.archiveType) archive.unpack(self.work_dir) def applyPatches(self): @@ -144,10 +144,9 @@ class PisiBuild: # the worst function in this project! # just testing... install_dir = self.ctx.pkg_install_dir() - for f in util.get_file_hashes(install_dir): + for fpath, fhash in util.get_file_hashes(install_dir): # get the relative path - fpath = f[0][len(install_dir):] - fhash = f[1] + fpath = fpath[len(install_dir):] depth = 0 ftype = ""