wifixers team mailing list archive
-
wifixers team
-
Mailing list archive
-
Message #00048
[Merge] lp:~14-jeevan/wifix/wifix into lp:wifix
Jeevan has proposed merging lp:~14-jeevan/wifix/wifix into lp:wifix.
Requested reviews:
Sam Dieck (sam-dieck)
For more details, see:
https://code.launchpad.net/~14-jeevan/wifix/wifix/+merge/239591
Implemented isroot() function in platform.py
--
https://code.launchpad.net/~14-jeevan/wifix/wifix/+merge/239591
Your team Wifixers is subscribed to branch lp:wifix.
=== modified file 'platforms.py'
--- platforms.py 2010-08-21 03:48:27 +0000
+++ platforms.py 2014-10-24 17:43:41 +0000
@@ -72,8 +72,11 @@
Returns True if the current process is being executed with elevated
privileges, False otherwise.
"""
+ if commands.getoutput("whoami")=="root":
+ return True;
- raise NotImplementedError
+ return False;
+
def message(self, message):
"""
Follow ups