From: Mark Hymers Date: Thu, 23 Jul 2009 21:16:43 +0000 (+0100) Subject: remove (pointless) old queue.Upload usage from add_user X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6d71e8c166e12f1b9fd8fe4c0fef25c390e6ae59;p=dak remove (pointless) old queue.Upload usage from add_user Signed-off-by: Mark Hymers --- diff --git a/dak/add_user.py b/dak/add_user.py index 0e69b7a7..56513220 100755 --- a/dak/add_user.py +++ b/dak/add_user.py @@ -26,7 +26,6 @@ import os import apt_pkg from daklib import daklog -from daklib import queue from daklib import utils from daklib.dbconn import DBConn, add_database_user, get_or_set_uid from daklib.regexes import re_gpg_fingerprint, re_user_address, re_user_mails, re_user_name @@ -229,8 +228,7 @@ def main(): # Should we send mail to the newly added user? if Cnf.FindB("Add-User::SendEmail"): mail = name + "<" + emails[0] +">" - Upload = queue.Upload(Cnf) - Subst = Upload.Subst + Subst = {} Subst["__NEW_MAINTAINER__"] = mail Subst["__UID__"] = uid Subst["__KEYID__"] = Cnf["Add-User::Options::Key"]