From 8312774abcdb1cc737dc2731539a0b5686080ad2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Aur=C3=A9lien=20Dunand?= Date: Tue, 17 Jul 2012 15:44:33 +0200 Subject: [PATCH] Fix typos MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Sébastien Luttringer --- installsystems/config.py | 2 +- installsystems/repository.py | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/installsystems/config.py b/installsystems/config.py index 4cb3763..e837178 100644 --- a/installsystems/config.py +++ b/installsystems/config.py @@ -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) diff --git a/installsystems/repository.py b/installsystems/repository.py index ba7864b..9982611 100644 --- a/installsystems/repository.py +++ b/installsystems/repository.py @@ -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 @@ -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)) @@ -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) -- GitLab