From f0bf0c39522e22a8f8a76620c8b4895b9c0473a7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=2E=C3=87a=C4=9Flar=20Onur?= Date: Sun, 25 Nov 2007 13:41:35 +0000 Subject: [PATCH] =?UTF-8?q?uzak=20derleme=20i=C5=9Flemleri=20i=C3=A7in=20p?= =?UTF-8?q?aketin=20t=C3=BCm=20dosyalar=C4=B1n=C4=B1=20/var/pisi/PAKETADI?= =?UTF-8?q?=20alt=C4=B1na=20=C3=A7ek=20ki=20pspec.xml=20nerede=20diye=20ar?= =?UTF-8?q?amayal=C4=B1m...?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pisi/constants.py | 1 + pisi/operations/build.py | 5 +++++ 2 files changed, 6 insertions(+) diff --git a/pisi/constants.py b/pisi/constants.py index a2960c1b..11d03ffc 100644 --- a/pisi/constants.py +++ b/pisi/constants.py @@ -71,6 +71,7 @@ class Constants: #in some places literals are just as good, for instance #when constant is the same as string. readability is important... self.__c.actions_file = "actions.py" + self.__c.pspec_file = "pspec.xml" self.__c.files_dir = "files" self.__c.metadata_dir = "metadata" self.__c.translations_file = "translations.xml" diff --git a/pisi/operations/build.py b/pisi/operations/build.py index fb0baa90..cad9043a 100644 --- a/pisi/operations/build.py +++ b/pisi/operations/build.py @@ -244,6 +244,7 @@ class Builder: self.destdir = pisi.util.join_path(ctx.config.tmp_dir(), pkgname) #self.location = os.path.dirname(self.url.uri) + self.fetch_pspecfile() self.fetch_actionsfile() self.fetch_translationsfile() self.fetch_patches() @@ -252,6 +253,10 @@ class Builder: return self.destdir + def fetch_pspecfile(self): + pspecuri = pisi.util.join_path(self.specdiruri, ctx.const.pspec_file) + self.download(pspecuri, self.destdir) + def fetch_actionsfile(self): actionsuri = pisi.util.join_path(self.specdiruri, ctx.const.actions_file) self.download(actionsuri, self.destdir)