diff options
author | Zac Medico <zmedico@gentoo.org> | 2008-07-11 21:28:15 +0000 |
---|---|---|
committer | Zac Medico <zmedico@gentoo.org> | 2008-07-11 21:28:15 +0000 |
commit | 58056b41de5ca2c4f669183666e34cebb1bb3340 (patch) | |
tree | 8947b5c712a06ad396fc0fd8d61be76447f84cbe | |
parent | 7804fe79000512fbffb84403299ebf7d83d9a96d (diff) | |
download | portage-58056b41de5ca2c4f669183666e34cebb1bb3340.tar.gz portage-58056b41de5ca2c4f669183666e34cebb1bb3340.tar.bz2 portage-58056b41de5ca2c4f669183666e34cebb1bb3340.zip |
Fix a few typos found with pyflakes. Thanks to Cardoe for reporting.
svn path=/main/trunk/; revision=11018
-rw-r--r-- | pym/repoman/utilities.py | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/pym/repoman/utilities.py b/pym/repoman/utilities.py index 28df593cf..f6c50326b 100644 --- a/pym/repoman/utilities.py +++ b/pym/repoman/utilities.py @@ -7,6 +7,7 @@ scan""" import commands +import errno import itertools import logging import os @@ -14,6 +15,7 @@ import sys from portage import output from portage.output import red, green +from portage.process import find_binary from portage import exception from portage import util normalize_path = util.normalize_path @@ -74,7 +76,7 @@ def detect_vcs_conflicts(options, vcs): else: retval = os.system(vcs + " update " + " ".join(myupdates)) if retval != os.EX_OK: - logging.fatal("!!! " + cvs + " exited with an error. Terminating.") + logging.fatal("!!! " + vcs + " exited with an error. Terminating.") sys.exit(retval) @@ -103,8 +105,8 @@ def parse_use_local_desc(mylines, usedict=None): try: pkg, flag = pkg_flag[0].split(":") except ValueError: - raise exception,ParseError("line %d: Malformed input: '%s'" % \ - (linenum + 1, l.rstrip("\n"))) + raise exception.ParseError("line %d: Malformed input: '%s'" % \ + (line_num + 1, l.rstrip("\n"))) usedict.setdefault(pkg, set()) usedict[pkg].add(flag) return usedict |