X-Git-Url: https://git.decadent.org.uk/gitweb/?a=blobdiff_plain;f=daklib%2Futils.py;h=073b8133ef3174aae090a536b2df337b54dc4e80;hb=b612f3da207fa0d75a5d3b204ac8f02bb244231a;hp=951270b5d2074fc380cfaba696d16b4d56bb010d;hpb=05e76c8434279daed67dc1020fe7dc5799800616;p=dak.git diff --git a/daklib/utils.py b/daklib/utils.py index 951270b5..073b8133 100755 --- a/daklib/utils.py +++ b/daklib/utils.py @@ -820,6 +820,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):