Gentoo Archives: gentoo-commits

From: Paul Varner <fuzzyray@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] proj/gentoolkit:gentoolkit commit in: pym/gentoolkit/revdep_rebuild/
Date: Thu, 14 Jul 2011 02:32:12
Message-Id: e3369415de42875dba4523b352f9a2d2899d2aac.fuzzyray@gentoo
1 commit: e3369415de42875dba4523b352f9a2d2899d2aac
2 Author: Paul Varner <fuzzyray <AT> gentoo <DOT> org>
3 AuthorDate: Thu Jul 14 02:31:41 2011 +0000
4 Commit: Paul Varner <fuzzyray <AT> gentoo <DOT> org>
5 CommitDate: Thu Jul 14 02:31:41 2011 +0000
6 URL: http://git.overlays.gentoo.org/gitweb/?p=proj/gentoolkit.git;a=commit;h=e3369415
7
8 Make development warning always print
9
10 ---
11 pym/gentoolkit/revdep_rebuild/rebuild.py | 17 ++++++++---------
12 1 files changed, 8 insertions(+), 9 deletions(-)
13
14 diff --git a/pym/gentoolkit/revdep_rebuild/rebuild.py b/pym/gentoolkit/revdep_rebuild/rebuild.py
15 index 5f64473..c8e0b37 100644
16 --- a/pym/gentoolkit/revdep_rebuild/rebuild.py
17 +++ b/pym/gentoolkit/revdep_rebuild/rebuild.py
18 @@ -192,19 +192,18 @@ def main(settings=None, logger=None):
19 if not settings['stdout'].isatty() or settings['nocolor']:
20 nocolor()
21
22 + #TODO: Development warning
23 + logger.warn(blue(' * ') +
24 + yellow('This is a development version, '
25 + 'so it may not work correctly'))
26 + logger.warn(blue(' * ') +
27 + yellow('The original revdep-rebuild script is '
28 + 'installed as revdep-rebuild.sh'))
29 +
30 if os.getuid() != 0 and not settings['PRETEND']:
31 logger.warn(blue(' * ') +
32 yellow('You are not root, adding --pretend to portage options'))
33 settings['PRETEND'] = True
34 - elif not settings['PRETEND'] \
35 - and settings['IS_DEV'] \
36 - and not settings['NO_PRETEND']:
37 - logger.warn(blue(' * ') +
38 - yellow('This is a development version, '
39 - 'so it may not work correctly'))
40 - logger.warn(blue(' * ') +
41 - yellow('The original revdep-rebuild script is '
42 - 'installed as revdep-rebuild.sh'))
43
44 if settings['USE_TMP_FILES'] \
45 and check_temp_files(settings['DEFAULT_TMP_DIR'], logger=logger):