From f236795ee1d58d73ed24442293a42b1e5124270c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bar=C4=B1=C5=9F=20Metin?= Date: Mon, 13 Jun 2005 12:37:26 +0000 Subject: [PATCH] =?UTF-8?q?archiveName=20specfile=20i=C3=A7erisine=20gitti?= =?UTF-8?q?.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/pisi/build.py | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/src/pisi/build.py b/src/pisi/build.py index 617d9e0e..bf647343 100644 --- a/src/pisi/build.py +++ b/src/pisi/build.py @@ -4,7 +4,6 @@ # python standard library import os -from os.path import basename from specfile import SpecFile from fetcher import Fetcher @@ -31,8 +30,6 @@ class PisiBuild: spec.read(pspecfile) spec.verify() # check pspec integrity - # additional processing on spec file - self.archiveName = basename(spec.archiveUri) self.spec = spec def install(self): @@ -50,7 +47,7 @@ class PisiBuild: def fetchArchive(self, percentHook=None): """fetch an archive and store to config.archives_dir() using fether.Fetcher""" - fetch = Fetcher(self.spec.archiveUri) + fetch = Fetcher(self.spec.archiveUri, self.spec.archiveName) # check if source already cached destpath = fetch.filedest + "/" + fetch.filename @@ -64,6 +61,8 @@ class PisiBuild: fetch.fetch() def unpackArchive(self): + archive = Archive(self.spec.archiveType, self.spec.archiveName) + archive.unpack() pass def applyPatches(self):