X-Git-Url: https://git.decadent.org.uk/gitweb/?a=blobdiff_plain;f=dak%2Ftransitions.py;h=a214337e5a0288d3e8f1ee46d04e3798d747b47e;hb=b612f3da207fa0d75a5d3b204ac8f02bb244231a;hp=2c7d3d8333071b61f41448806f8fc4e007b60e9e;hpb=7c40371fd5e818e0bad7edfa92267d663adf4993;p=dak.git diff --git a/dak/transitions.py b/dak/transitions.py index 2c7d3d83..a214337e 100755 --- a/dak/transitions.py +++ b/dak/transitions.py @@ -85,9 +85,7 @@ def init(): if Options["help"]: usage() - whoami = os.getuid() - whoamifull = pwd.getpwuid(whoami) - username = whoamifull[0] + username = utils.getusername() if username != "dak": print "Non-dak user: %s" % username Options["sudo"] = "y"