diff options
| author | Kelsey Hightower <kelsey.hightower@gmail.com> | 2011-02-09 18:57:42 -0500 |
|---|---|---|
| committer | Kelsey Hightower <kelsey.hightower@gmail.com> | 2011-02-09 18:57:42 -0500 |
| commit | ae16122b93e767e568b81c4e83312af8471ff101 (patch) | |
| tree | 3b6cb06430e559a064ce6bacf6bd4f5a6c9959f4 /distutils2/install.py | |
| parent | 16c212fcd49076eea95bf0e69709eb070b258c0f (diff) | |
| download | disutils2-ae16122b93e767e568b81c4e83312af8471ff101.tar.gz | |
Fixing logging strings; improve lower-case consistency
Diffstat (limited to 'distutils2/install.py')
| -rw-r--r-- | distutils2/install.py | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/distutils2/install.py b/distutils2/install.py index 4d3ea5a..6e5583b 100644 --- a/distutils2/install.py +++ b/distutils2/install.py @@ -134,12 +134,12 @@ def install_dists(dists, path, paths=sys.path): installed_dists, installed_files = [], [] for dist in dists: - logger.info('Installing %s %s' % (dist.name, dist.version)) + logger.info('installing %s %s' % (dist.name, dist.version)) try: installed_files.extend(_install_dist(dist, path)) installed_dists.append(dist) except Exception, e: - logger.info('Failed. %s' % str(e)) + logger.info('failed. %s' % str(e)) # reverting for installed_dist in installed_dists: @@ -243,7 +243,7 @@ def get_infos(requirements, index=None, installed=None, prefer_final=True): conflict. """ if not installed: - logger.info('Reading installed distributions') + logger.info('reading installed distributions') installed = get_distributions(use_egg_info=True) infos = {'install': [], 'remove': [], 'conflict': []} @@ -258,7 +258,7 @@ def get_infos(requirements, index=None, installed=None, prefer_final=True): if predicate.name.lower() != installed_project.name.lower(): continue found = True - logger.info('Found %s %s' % (installed_project.name, + logger.info('found %s %s' % (installed_project.name, installed_project.version)) # if we already have something installed, check it matches the @@ -268,7 +268,7 @@ def get_infos(requirements, index=None, installed=None, prefer_final=True): break if not found: - logger.info('Project not installed.') + logger.info('project not installed.') if not index: index = wrapper.ClientWrapper() @@ -283,7 +283,7 @@ def get_infos(requirements, index=None, installed=None, prefer_final=True): release = releases.get_last(requirements, prefer_final=prefer_final) if release is None: - logger.info('Could not find a matching project') + logger.info('could not find a matching project') return infos # this works for Metadata 1.2 @@ -358,7 +358,7 @@ def remove(project_name, paths=sys.path): finally: shutil.rmtree(tmp) - logger.info('Removing %r...' % project_name) + logger.info('removing %r...' % project_name) file_count = 0 for file_ in rmfiles: @@ -391,20 +391,20 @@ def remove(project_name, paths=sys.path): if os.path.exists(dist.path): shutil.rmtree(dist.path) - logger.info('Success ! Removed %d files and %d dirs' % \ + logger.info('success ! removed %d files and %d dirs' % \ (file_count, dir_count)) def install(project): - logger.info('Getting information about "%s".' % project) + logger.info('getting information about "%s".' % project) try: info = get_infos(project) except InstallationException: - logger.info('Cound not find "%s".' % project) + logger.info('could not find "%s".' % project) return if info['install'] == []: - logger.info('Nothing to install.') + logger.info('nothing to install.') return install_path = get_config_var('base') |
