X-Git-Url: https://git.decadent.org.uk/gitweb/?a=blobdiff_plain;f=daklib%2Futils.py;h=5edf2cb1eeddcd34a3dd7f5237b029a3f863ba8c;hb=1c35448b880358d020e81339657e3435fdda9434;hp=841e8d3a6da3f014df5bf4f60a1e57bce9125b96;hpb=a43c7b22d8bbbcba586137b2345459d1e693f593;p=dak.git diff --git a/daklib/utils.py b/daklib/utils.py index 841e8d3a..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): @@ -875,8 +878,8 @@ def parse_args(Options): suite_ids_list = [] for suitename in split_args(Options["Suite"]): suite = get_suite(suitename, session=session) - if suite_id is None: - warn("suite '%s' not recognised." % (suitename)) + if suite.suite_id is None: + warn("suite '%s' not recognised." % (suite.suite_name)) else: suite_ids_list.append(suite.suite_id) if suite_ids_list: