]> err.no Git - dak/commitdiff
remove (pointless) old queue.Upload usage from add_user
authorMark Hymers <mhy@debian.org>
Thu, 23 Jul 2009 21:16:43 +0000 (22:16 +0100)
committerMark Hymers <mhy@debian.org>
Sun, 9 Aug 2009 15:49:26 +0000 (16:49 +0100)
Signed-off-by: Mark Hymers <mhy@debian.org>
dak/add_user.py

index 0e69b7a7625b714a1e19967bdb1749fb465a4599..5651322028774e49545f9ac684252761618ea3ad 100755 (executable)
@@ -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"]