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