[jhbuild] To the hell with root warnings!



commit 4e0e20c969696fc7861d19fd8d6ca17d57128195
Author: Giovanni Campagna <gcampagn redhat com>
Date:   Fri Jul 12 18:29:39 2013 +0200

    To the hell with root warnings!

 jhbuild/main.py |    4 ----
 1 files changed, 0 insertions(+), 4 deletions(-)
---
diff --git a/jhbuild/main.py b/jhbuild/main.py
index e0927cd..35f3564 100644
--- a/jhbuild/main.py
+++ b/jhbuild/main.py
@@ -94,10 +94,6 @@ def main(args):
         localedir = None
     gettext.install('jhbuild', localedir=localedir, unicode=True)
 
-    if hasattr(os, 'getuid') and os.getuid() == 0:
-        sys.stderr.write(_('You should not run jhbuild as root.\n').encode(_encoding, 'replace'))
-        sys.exit(1)
-
     logging.getLogger().setLevel(logging.INFO)
     logging_handler = logging.StreamHandler()
     logging_handler.setFormatter(LoggingFormatter())


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]