summaryrefslogtreecommitdiffstats
path: root/pym/portage
diff options
context:
space:
mode:
authorArfrever Frehtes Taifersar Arahesis <Arfrever@Gentoo.Org>2011-05-15 23:24:31 +0200
committerArfrever Frehtes Taifersar Arahesis <Arfrever@Gentoo.Org>2011-05-15 23:24:31 +0200
commit7ba599709990b35cddcd0d0163e172d6ad9bcc0f (patch)
tree6e076c6c2e9aa45d95773ccf8eaae1dbc69bd53a /pym/portage
parent5eef84cb4b72695548937445019eac24f53d252b (diff)
downloadportage-7ba599709990b35cddcd0d0163e172d6ad9bcc0f.tar.gz
portage-7ba599709990b35cddcd0d0163e172d6ad9bcc0f.tar.bz2
portage-7ba599709990b35cddcd0d0163e172d6ad9bcc0f.zip
Fix some typos.
Diffstat (limited to 'pym/portage')
-rw-r--r--pym/portage/cvstree.py6
-rw-r--r--pym/portage/mail.py10
-rw-r--r--pym/portage/output.py4
-rw-r--r--pym/portage/tests/resolver/ResolverPlayground.py8
-rw-r--r--pym/portage/update.py4
-rw-r--r--pym/portage/xml/metadata.py4
6 files changed, 18 insertions, 18 deletions
diff --git a/pym/portage/cvstree.py b/pym/portage/cvstree.py
index f36e9230c..de580f57e 100644
--- a/pym/portage/cvstree.py
+++ b/pym/portage/cvstree.py
@@ -1,5 +1,5 @@
# cvstree.py -- cvs tree utilities
-# Copyright 1998-2004 Gentoo Foundation
+# Copyright 1998-2011 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
from __future__ import print_function
@@ -199,8 +199,8 @@ def apply_cvsignore_filter(list):
def getentries(mydir,recursive=0):
"""(basedir,recursive=0)
- Scans the given directory and returns an datadict of all the entries in
- the directory seperated as a dirs dict and a files dict."""
+ Scans the given directory and returns a datadict of all the entries in
+ the directory separated as a dirs dict and a files dict."""
myfn=mydir+"/CVS/Entries"
# entries=[dirs, files]
entries={"dirs":{},"files":{}}
diff --git a/pym/portage/mail.py b/pym/portage/mail.py
index aa41854c3..688b5181d 100644
--- a/pym/portage/mail.py
+++ b/pym/portage/mail.py
@@ -107,8 +107,8 @@ def send_mail(mysettings, message):
myrecipient = "root@localhost"
# Syntax for PORTAGE_ELOG_MAILURI (if defined):
- # adress [[user:passwd@]mailserver[:port]]
- # where adress: recipient adress
+ # address [[user:passwd@]mailserver[:port]]
+ # where address: recipient address
# user: username for smtp auth (defaults to none)
# passwd: password for smtp auth (defaults to none)
# mailserver: smtp server that should be used to deliver the mail (defaults to localhost)
@@ -159,7 +159,7 @@ def send_mail(mysettings, message):
myconn = smtplib.SMTP(mymailhost, int(mymailport) - 100000)
myconn.ehlo()
if not myconn.has_extn("STARTTLS"):
- raise portage.exception.PortageException(_("!!! TLS support requested for logmail but not suported by server"))
+ raise portage.exception.PortageException(_("!!! TLS support requested for logmail but not supported by server"))
myconn.starttls()
myconn.ehlo()
else:
@@ -171,8 +171,8 @@ def send_mail(mysettings, message):
myconn.sendmail(myfrom, myrecipient, message_str)
myconn.quit()
except smtplib.SMTPException as e:
- raise portage.exception.PortageException(_("!!! An error occured while trying to send logmail:\n")+str(e))
+ raise portage.exception.PortageException(_("!!! An error occurred while trying to send logmail:\n")+str(e))
except socket.error as e:
- raise portage.exception.PortageException(_("!!! A network error occured while trying to send logmail:\n%s\nSure you configured PORTAGE_ELOG_MAILURI correctly?") % str(e))
+ raise portage.exception.PortageException(_("!!! A network error occurred while trying to send logmail:\n%s\nSure you configured PORTAGE_ELOG_MAILURI correctly?") % str(e))
return
diff --git a/pym/portage/output.py b/pym/portage/output.py
index 5e8b89e0e..a0846b392 100644
--- a/pym/portage/output.py
+++ b/pym/portage/output.py
@@ -1,4 +1,4 @@
-# Copyright 1998-2009 Gentoo Foundation
+# Copyright 1998-2011 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
__docformat__ = "epytext"
@@ -181,7 +181,7 @@ def _parse_color_map(config_root='/', onerror=None):
split_line = line.split("=")
if len(split_line) != 2:
- e = ParseError(_("'%s', line %s: expected exactly one occurence of '=' operator") % \
+ e = ParseError(_("'%s', line %s: expected exactly one occurrence of '=' operator") % \
(myfile, lineno))
raise e
if onerror:
diff --git a/pym/portage/tests/resolver/ResolverPlayground.py b/pym/portage/tests/resolver/ResolverPlayground.py
index f5bd77ff2..2020cf370 100644
--- a/pym/portage/tests/resolver/ResolverPlayground.py
+++ b/pym/portage/tests/resolver/ResolverPlayground.py
@@ -26,9 +26,9 @@ from _emerge.RootConfig import RootConfig
class ResolverPlayground(object):
"""
- This class help to create the necessary files on disk and
+ This class helps to create the necessary files on disk and
the needed settings instances, etc. for the resolver to do
- it's work.
+ its work.
"""
config_files = frozenset(("package.use", "package.mask", "package.keywords", \
@@ -37,7 +37,7 @@ class ResolverPlayground(object):
def __init__(self, ebuilds={}, installed={}, profile={}, repo_configs={}, \
user_config={}, sets={}, world=[], debug=False):
"""
- ebuilds: cpv -> metadata mapping simulating avaiable ebuilds.
+ ebuilds: cpv -> metadata mapping simulating available ebuilds.
installed: cpv -> metadata mapping simulating installed packages.
If a metadata key is missing, it gets a default value.
profile: settings defined by the profile.
@@ -487,7 +487,7 @@ class ResolverPlaygroundTestCase(object):
checks = dict.fromkeys(result.checks)
for key, value in self._checks.items():
if not key in checks:
- raise KeyError("Not an avaiable check: '%s'" % key)
+ raise KeyError("Not an available check: '%s'" % key)
checks[key] = value
fail_msgs = []
diff --git a/pym/portage/update.py b/pym/portage/update.py
index bac09c2ac..4e5e78e5b 100644
--- a/pym/portage/update.py
+++ b/pym/portage/update.py
@@ -1,4 +1,4 @@
-# Copyright 1999-2010 Gentoo Foundation
+# Copyright 1999-2011 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
import codecs
@@ -310,7 +310,7 @@ def update_config_files(config_root, protect, protect_mask, update_iter, match_c
write_atomic(updating_file, "".join(file_contents[x]))
except PortageException as e:
writemsg("\n!!! %s\n" % str(e), noiselevel=-1)
- writemsg(_("!!! An error occured while updating a config file:") + \
+ writemsg(_("!!! An error occurred while updating a config file:") + \
" '%s'\n" % updating_file, noiselevel=-1)
continue
diff --git a/pym/portage/xml/metadata.py b/pym/portage/xml/metadata.py
index 21e9a5d6b..7acc1f3d6 100644
--- a/pym/portage/xml/metadata.py
+++ b/pym/portage/xml/metadata.py
@@ -1,4 +1,4 @@
-# Copyright 2010 Gentoo Foundation
+# Copyright 2010-2011 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
"""Provides an easy-to-use python interface to Gentoo's metadata.xml file.
@@ -79,7 +79,7 @@ class _Useflag(object):
@type name: str or None
@ivar name: USE flag
@type restrict: str or None
- @ivar restrict: e.g. &gt;=portage-2.2 means flag is only avaiable in
+ @ivar restrict: e.g. &gt;=portage-2.2 means flag is only available in
versions greater than 2.2
@type description: str
@ivar description: description of the USE flag