Loading installsystems/config.py +1 −1 Original line number Diff line number Diff line Loading @@ -155,7 +155,7 @@ class MainConfigFile(ConfigFile): List all candidates to cache directories. Alive or not ''' dirs = [os.path.expanduser("~/.cache"), "/var/tmp", "/tmp"] # we have an additional directry if we are root # we have an additional directory if we are root if os.getuid() == 0: dirs.insert(0, "/var/cache") return map(lambda x: os.path.join(x, self.prefix), dirs) Loading installsystems/repository.py +3 −3 Original line number Diff line number Diff line Loading @@ -71,7 +71,7 @@ class Repository(object): @staticmethod def split_repository_list(repolist, filter=None): ''' Return a list of repository from an comma/spaces separated names of repo Return a list of repository from a comma/spaces separated names of repo ''' if filter is None: filter = Repository.is_repository_name Loading @@ -80,7 +80,7 @@ class Repository(object): @classmethod def diff(cls, repo1, repo2): ''' Comptue a diff between two repositories Compute a diff between two repositories ''' arrow(u"Diff between repositories #y#%s#R# and #g#%s#R#" % (repo1.config.name, repo2.config.name)) Loading Loading @@ -965,7 +965,7 @@ class RepositoryConfig(object): ''' Set db path ''' # dbpath must be local, sqlite3 requirment # dbpath must be local, sqlite3 requirement if not istools.isfile(value): raise ValueError("Database path must be local") self._dbpath = os.path.abspath(value) Loading Loading
installsystems/config.py +1 −1 Original line number Diff line number Diff line Loading @@ -155,7 +155,7 @@ class MainConfigFile(ConfigFile): List all candidates to cache directories. Alive or not ''' dirs = [os.path.expanduser("~/.cache"), "/var/tmp", "/tmp"] # we have an additional directry if we are root # we have an additional directory if we are root if os.getuid() == 0: dirs.insert(0, "/var/cache") return map(lambda x: os.path.join(x, self.prefix), dirs) Loading
installsystems/repository.py +3 −3 Original line number Diff line number Diff line Loading @@ -71,7 +71,7 @@ class Repository(object): @staticmethod def split_repository_list(repolist, filter=None): ''' Return a list of repository from an comma/spaces separated names of repo Return a list of repository from a comma/spaces separated names of repo ''' if filter is None: filter = Repository.is_repository_name Loading @@ -80,7 +80,7 @@ class Repository(object): @classmethod def diff(cls, repo1, repo2): ''' Comptue a diff between two repositories Compute a diff between two repositories ''' arrow(u"Diff between repositories #y#%s#R# and #g#%s#R#" % (repo1.config.name, repo2.config.name)) Loading Loading @@ -965,7 +965,7 @@ class RepositoryConfig(object): ''' Set db path ''' # dbpath must be local, sqlite3 requirment # dbpath must be local, sqlite3 requirement if not istools.isfile(value): raise ValueError("Database path must be local") self._dbpath = os.path.abspath(value) Loading