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)