X-Git-Url: https://git.decadent.org.uk/gitweb/?a=blobdiff_plain;f=daklib%2Futils.py;h=a9dea9201cd7e25aa7373461eccfd901468022c8;hb=52b14d883272923a4296ac02921ccf350815db83;hp=dc201e3f9a61ff4dcced2658db3f41e570a1c032;hpb=8bf7eca7f097fe143485d534532562a62805fd9b;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):