From e3369415de42875dba4523b352f9a2d2899d2aac Mon Sep 17 00:00:00 2001 From: Paul Varner Date: Wed, 13 Jul 2011 21:31:41 -0500 Subject: [PATCH] Make development warning always print --- pym/gentoolkit/revdep_rebuild/rebuild.py | 17 ++++++++--------- 1 file changed, 8 insertions(+), 9 deletions(-) diff --git a/pym/gentoolkit/revdep_rebuild/rebuild.py b/pym/gentoolkit/revdep_rebuild/rebuild.py index 5f64473..c8e0b37 100644 --- a/pym/gentoolkit/revdep_rebuild/rebuild.py +++ b/pym/gentoolkit/revdep_rebuild/rebuild.py @@ -192,19 +192,18 @@ def main(settings=None, logger=None): if not settings['stdout'].isatty() or settings['nocolor']: nocolor() + #TODO: Development warning + logger.warn(blue(' * ') + + yellow('This is a development version, ' + 'so it may not work correctly')) + logger.warn(blue(' * ') + + yellow('The original revdep-rebuild script is ' + 'installed as revdep-rebuild.sh')) + if os.getuid() != 0 and not settings['PRETEND']: logger.warn(blue(' * ') + yellow('You are not root, adding --pretend to portage options')) settings['PRETEND'] = True - elif not settings['PRETEND'] \ - and settings['IS_DEV'] \ - and not settings['NO_PRETEND']: - logger.warn(blue(' * ') + - yellow('This is a development version, ' - 'so it may not work correctly')) - logger.warn(blue(' * ') + - yellow('The original revdep-rebuild script is ' - 'installed as revdep-rebuild.sh')) if settings['USE_TMP_FILES'] \ and check_temp_files(settings['DEFAULT_TMP_DIR'], logger=logger): -- 2.26.2