X-Git-Url: https://git.decadent.org.uk/gitweb/?a=blobdiff_plain;f=daklib%2Futils.py;h=5edf2cb1eeddcd34a3dd7f5237b029a3f863ba8c;hb=1c35448b880358d020e81339657e3435fdda9434;hp=7b139767dd98389b62871b703e1b754e7240b3f7;hpb=9af3682a124014b128df6e2eb5c936cdb67c8c84;p=dak.git diff --git a/daklib/utils.py b/daklib/utils.py index 7b139767..5edf2cb1 100755 --- a/daklib/utils.py +++ b/daklib/utils.py @@ -691,6 +691,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):