Make development warning always print
authorPaul Varner <fuzzyray@gentoo.org>
Thu, 14 Jul 2011 02:31:41 +0000 (21:31 -0500)
committerPaul Varner <fuzzyray@gentoo.org>
Thu, 14 Jul 2011 02:31:41 +0000 (21:31 -0500)
pym/gentoolkit/revdep_rebuild/rebuild.py

index 5f644730c17ba3f568f1aebb3746eb9cc78e37a5..c8e0b371903523ccd78afa9fb727a951464934ec 100644 (file)
@@ -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):