From bfaebf41873afd3f9ac9ddef72a58120ba4f2e4c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=2E=C3=87a=C4=9Flar=20Onur?= Date: Tue, 21 Jun 2005 14:47:32 +0000 Subject: [PATCH] tab/space problemleri --- pisi/context.py | 64 +++++++++++++++++++++---------------------- pisi/sourcearchive.py | 10 +++---- 2 files changed, 37 insertions(+), 37 deletions(-) diff --git a/pisi/context.py b/pisi/context.py index 7ded6c6d..afff6aa2 100644 --- a/pisi/context.py +++ b/pisi/context.py @@ -40,48 +40,48 @@ class Constants: class Context(object): """Config/Context Singleton""" class __impl: - def __init__(self): - self.const = Constants() - # self.c.destdir = '' # install default to root by default - self.destdir = './tmp' # only for ALPHA - # the idea is that destdir can be set with --destdir=... + def __init__(self): + self.const = Constants() + # self.c.destdir = '' # install default to root by default + self.destdir = './tmp' # only for ALPHA + # the idea is that destdir can be set with --destdir=... - def setSpecFile(self, pspecfile): - self.pspecfile = pspecfile - spec = SpecFile() - spec.read(pspecfile) - spec.verify() # check pspec integrity - self.spec = spec + def setSpecFile(self, pspecfile): + self.pspecfile = pspecfile + spec = SpecFile() + spec.read(pspecfile) + spec.verify() # check pspec integrity + self.spec = spec - # directory accessor functions - # here is how it goes - # x_dir: system wide directory for storing info type x - # pkg_x_dir: per package directory for storing info type x + # directory accessor functions + # here is how it goes + # x_dir: system wide directory for storing info type x + # pkg_x_dir: per package directory for storing info type x - def lib_dir(self): - return self.destdir + self.const.lib_dir_suffix + def lib_dir(self): + return self.destdir + self.const.lib_dir_suffix - def db_dir(self): - return self.destdir + self.const.db_dir_suffix + def db_dir(self): + return self.destdir + self.const.db_dir_suffix - def archives_dir(self): - return self.destdir + self.const.archives_dir_suffix + def archives_dir(self): + return self.destdir + self.const.archives_dir_suffix - def tmp_dir(self): - return self.destdir + self.const.tmp_dir_suffix + 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 + 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 + return self.destdir + self.const.tmp_dir_suffix \ + + '/' + packageDir - def pkg_work_dir(self): - return self.pkg_dir() + self.const.work_dir_suffix + def pkg_work_dir(self): + return self.pkg_dir() + self.const.work_dir_suffix - def pkg_install_dir(self): - return self.pkg_dir() + self.const.install_dir_suffix + def pkg_install_dir(self): + return self.pkg_dir() + self.const.install_dir_suffix __instance = __impl() diff --git a/pisi/sourcearchive.py b/pisi/sourcearchive.py index b6748a0d..4587593e 100644 --- a/pisi/sourcearchive.py +++ b/pisi/sourcearchive.py @@ -46,9 +46,9 @@ class SourceArchive: if percentHook: fetch.percentHook = percentHook - fetch.fetch() + fetch.fetch() - # FIXME: What a ugly hack! We should really find a cleaner way for output. - if percentHook: - ui.info('\n') - pass + # FIXME: What a ugly hack! We should really find a cleaner way for output. + if percentHook: + ui.info('\n') + pass