[jhbuild] Obvious fix to previous commit



commit 07ecc6ae46b7a75e3a2dca5221a4ea67dc28236c
Author: Frédéric Péters <fpeters 0d be>
Date:   Wed Jun 9 20:00:09 2010 +0200

    Obvious fix to previous commit

 jhbuild/main.py |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/jhbuild/main.py b/jhbuild/main.py
index 5c3ec35..1ecc9c1 100644
--- a/jhbuild/main.py
+++ b/jhbuild/main.py
@@ -94,7 +94,7 @@ def main(args):
         localedir = None
     gettext.install('jhbuild', localedir=localedir, unicode=True)
 
-    if hasattr(os, 'getuid'):
+    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)
 



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