X-Git-Url: https://git.decadent.org.uk/gitweb/?a=blobdiff_plain;f=dak%2Fadd_user.py;h=28d312087fbcd712408027293d80e38dadb823fb;hb=7688a62903282c6f1a989d4f2474785a7b0ff325;hp=f6fb645ff5d464dd2a04998b2972e0004e50c965;hpb=0c27f27952cc379ca2b00f1ef4d04cdf533402ab;p=dak.git diff --git a/dak/add_user.py b/dak/add_user.py index f6fb645f..28d31208 100755 --- a/dak/add_user.py +++ b/dak/add_user.py @@ -211,10 +211,10 @@ def main(): # Lets add user to the email-whitelist file if its configured. if Cnf.has_key("Dinstall::MailWhiteList") and Cnf["Dinstall::MailWhiteList"] != "": - file = utils.open_file(Cnf["Dinstall::MailWhiteList"], "a") + f = utils.open_file(Cnf["Dinstall::MailWhiteList"], "a") for mail in emails: - file.write(mail+'\n') - file.close() + f.write(mail+'\n') + f.close() print "Added:\nUid:\t %s (ID: %s)\nMaint:\t %s\nFP:\t %s" % (uid, uid_id, \ name, primary_key)