X-Git-Url: https://git.decadent.org.uk/gitweb/?a=blobdiff_plain;f=daklib%2Futils.py;h=a9dea9201cd7e25aa7373461eccfd901468022c8;hb=9fa241c825a40bd09bd1c2e6b7f065f4a1dc0481;hp=dc201e3f9a61ff4dcced2658db3f41e570a1c032;hpb=85569c95d888b1ad94338f2326faabf6e22bcd8a;p=dak.git diff --git a/daklib/utils.py b/daklib/utils.py index dc201e3f..a9dea920 100755 --- a/daklib/utils.py +++ b/daklib/utils.py @@ -696,6 +696,9 @@ def warn(msg): def whoami (): return pwd.getpwuid(os.getuid())[4].split(',')[0].replace('.', '') +def getusername (): + return pwd.getpwuid(os.getuid())[0] + ################################################################################ def size_type (c):