From f32d00181bde0fd7b3a6b7e70383a7bc333ea707 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Aur=C3=A9lien=20Dunand?= <adunand@smartjog.com> Date: Wed, 15 Jun 2011 11:17:35 +0000 Subject: [PATCH] Fix typos --- installsystems/database.py | 2 +- installsystems/image.py | 2 +- installsystems/repository.py | 8 ++++---- installsystems/tools.py | 2 +- 4 files changed, 7 insertions(+), 7 deletions(-) diff --git a/installsystems/database.py b/installsystems/database.py index ec5c158..fd62e27 100644 --- a/installsystems/database.py +++ b/installsystems/database.py @@ -96,7 +96,7 @@ class Database(object): raise Exception("Adding metadata fail: %s" % e) def delete(self, name, version): - '''Deltete a packaged image''' + '''Delete a packaged image''' arrow("Removing metadata from db", 1, self.verbose) # check locality if istools.pathtype(self.path) != "file": diff --git a/installsystems/image.py b/installsystems/image.py index 2306387..1118f21 100644 --- a/installsystems/image.py +++ b/installsystems/image.py @@ -162,7 +162,7 @@ class SourceImage(Image): def create_data_tarballs(self): ''' Create all data tarballs in data directory - Doen't compute md5 during creation because tarball can + Doesn't compute md5 during creation because tarball can be created manually ''' arrow("Creating data tarballs", 1, self.verbose) diff --git a/installsystems/repository.py b/installsystems/repository.py index 95f1940..37a5b50 100644 --- a/installsystems/repository.py +++ b/installsystems/repository.py @@ -227,9 +227,9 @@ class RepositoryManager(object): def find_image(self, name, version): '''Find a repository containing image''' if version is None: - arrow("Serching last version of %s" % name, 1, self.verbose) + arrow("Searching last version of %s" % name, 1, self.verbose) else: - arrow("Serching %s version %s " % (name, version), 1, self.verbose) + arrow("Searching %s version %s " % (name, version), 1, self.verbose) img = None # search in all repositories desc = None @@ -331,9 +331,9 @@ class RepositoryCache(object): def find_image(self, name, version): '''Find an image in repositories''' if version is None: - arrow("Serching last version of %s" % name, 1, self.verbose) + arrow("Searching last version of %s" % name, 1, self.verbose) else: - arrow("Serching %s version %s " % (name, version), 1, self.verbose) + arrow("Searching %s version %s " % (name, version), 1, self.verbose) img = None # search in all repositories for repo in self.repos: diff --git a/installsystems/tools.py b/installsystems/tools.py index efe4b45..7a3fb82 100644 --- a/installsystems/tools.py +++ b/installsystems/tools.py @@ -63,7 +63,7 @@ def chrights(path, uid=None, gid=None, mode=None): os.chmod(path, mode) def pathtype(path): - '''Return path type. This is usefull to know what king of path is given''' + '''Return path type. This is usefull to know what kind of path is given''' from installsystems.image import Image if path.startswith("http://") or path.startswith("https://"): return "http" -- GitLab