From e04db5e0df300b9c894ab69c4a170f504adc78f2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bar=C4=B1=C5=9F=20Metin?= Date: Mon, 20 Jun 2005 12:44:17 +0000 Subject: [PATCH] =?UTF-8?q?paket=20olu=C5=9Fturma=20dizinini=20de=20almak?= =?UTF-8?q?=20isteyece=C4=9Fiz.=20pkd=5Fdir()'=C4=B1=20ekledik=20bu=20y?= =?UTF-8?q?=C3=BCzden.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pisi/context.py | 19 +++++++++---------- 1 file changed, 9 insertions(+), 10 deletions(-) diff --git a/pisi/context.py b/pisi/context.py index eb7e0972..b912229c 100644 --- a/pisi/context.py +++ b/pisi/context.py @@ -69,20 +69,19 @@ class Context(object): def tmp_dir(self): return self.destdir + self.const.tmp_dir_suffix + + def pkg_dir(self): + packageDir = self.spec.source.name + '-' \ + + self.spec.source.version + '-' + self.spec.source.release + + return self.destdir + self.const.tmp_dir_suffix \ + + '/' + packageDir def pkg_work_dir(self): - packageDir = self.spec.source.name + '-' \ - + self.spec.source.version + '-' + self.spec.source.release - - return self.destdir + self.const.tmp_dir_suffix \ - + '/' + packageDir + self.const.work_dir_suffix + return self.pkg_dir() + self.const.work_dir_suffix def pkg_install_dir(self): - packageDir = self.spec.source.name + '-' \ - + self.spec.source.version + '-' + self.spec.source.release - - return self.destdir + self.const.tmp_dir_suffix \ - + '/' + packageDir + self.const.install_dir_suffix + return self.pkg_dir() + self.const.install_dir_suffix __instance = __impl()