diff options
author | brian.dolbec <brian.dolbec@5234894e-44cd-11de-9a4c-a76526a193c6> | 2010-11-05 15:19:06 +0000 |
---|---|---|
committer | Brian Dolbec <brian.dolbec@gmail.com> | 2010-12-29 18:51:24 -0800 |
commit | 5b34f85152d4b8079fe699af0f649f9cfe179162 (patch) | |
tree | 879ddb86b60215ac2d4bd6ebbf9d9ac28c92f2c0 | |
parent | fix a missing leading space so that any args are not attached to the emerge c... (diff) | |
download | gentoolkit-5b34f85152d4b8079fe699af0f649f9cfe179162.tar.gz gentoolkit-5b34f85152d4b8079fe699af0f649f9cfe179162.tar.bz2 gentoolkit-5b34f85152d4b8079fe699af0f649f9cfe179162.zip |
Comment the NO_PRETEND variable better.
Fix a few minor grammar errors.
git-svn-id: http://genscripts.googlecode.com/svn/trunk/gentoolkit@478 5234894e-44cd-11de-9a4c-a76526a193c6
-rwxr-xr-x | pym/gentoolkit/revdep_rebuild/revdep-rebuild.py | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/pym/gentoolkit/revdep_rebuild/revdep-rebuild.py b/pym/gentoolkit/revdep_rebuild/revdep-rebuild.py index 544a86c..fb864da 100755 --- a/pym/gentoolkit/revdep_rebuild/revdep-rebuild.py +++ b/pym/gentoolkit/revdep_rebuild/revdep-rebuild.py @@ -46,7 +46,9 @@ DEFAULT_TMP_DIR = '/tmp/revdep-rebuild' #cache default location VERBOSITY = 1 #verbosity level; 0-quiet, 1-norm., 2-verbose IS_DEV = True #True for dev. version, False for stable -NO_PRETEND = False #used when IS_DEV is True, forces to call emerge from script +#used when IS_DEV is True, False forces to call emerge with --pretend +# can be set True from the cli with the --no-pretend option +NO_PRETEND = False @@ -72,7 +74,7 @@ def print_v(verbosity, args): def exithandler(signum, frame): - print 'Signal catched!' + print 'Signal caught!' print 'Bye!' signal.signal(signal.SIGINT, signal.SIG_IGN) signal.signal(signal.SIGTERM, signal.SIG_IGN) @@ -475,7 +477,7 @@ def get_best_match(cpv, cp): """ slot = portage.db[portage.root]["vartree"].dbapi.aux_get(cpv, ["SLOT"]) - print_v(1, yellow('Warn: ebuild ' + cpv + ' not found.')) + print_v(1, yellow('Warning: ebuild "' + cpv + '" not found.')) print_v(1, 'Looking for %s:%s' %(cp, slot)) try: m = portdb.match('%s:%s' %(cp, slot)) @@ -568,7 +570,7 @@ def analyse(output=print_v, libraries=None, la_libraries=None, libraries_links=N """ if libraries and la_libraries and libraries_links and binaries: - output(1, blue(' * ') + bold('Found cache, skipping collecting phase')) + output(1, blue(' * ') + bold('Found a valid cache, skipping collecting phase')) else: #TODO: add partial cache (for ex. only libraries) when found for some reason @@ -680,7 +682,7 @@ if __name__ == "__main__": print_v(1, blue(' * ') + yellow('You are not root, adding --pretend to portage options')) PRETEND = True elif not PRETEND and IS_DEV and not NO_PRETEND: - print_v(1, blue(' * ') + yellow('This is dev. version, so it could not work correctly')) + print_v(1, blue(' * ') + yellow('This is a development version, so it may not work correctly')) print_v(1, blue(' * ') + yellow('Adding --pretend to portage options anyway')) print_v(1, blue(' * ') + 'If you\'re sure, you can add --no-pretend to revdep options') PRETEND = True |