From: Paul Varner Date: Thu, 14 Jul 2011 02:31:41 +0000 (-0500) Subject: Make development warning always print X-Git-Tag: gentoolkit-0.3.0.5~24 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=e3369415de42875dba4523b352f9a2d2899d2aac;p=gentoolkit.git Make development warning always print --- 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):