X-Git-Url: https://git.decadent.org.uk/gitweb/?a=blobdiff_plain;f=daklib%2Fqueue.py;h=b1383be035c829a568a66ab71523b24dd38378bc;hb=46e78dc7379a831bcd05fe86f218d3f4753d26d5;hp=aca1b8a07f702d9f2756cf70c455031860180fbd;hpb=8e12b3256ebf21e07c6edeb296f5c3ccc848a661;p=dak.git diff --git a/daklib/queue.py b/daklib/queue.py index aca1b8a0..b1383be0 100755 --- a/daklib/queue.py +++ b/daklib/queue.py @@ -72,7 +72,7 @@ def get_type(f, session): """ # Determine the type if f.has_key("dbtype"): - file_type = file["dbtype"] + file_type = f["dbtype"] elif f["type"] in [ "orig.tar.gz", "orig.tar.bz2", "tar.gz", "tar.bz2", "diff.gz", "diff.bz2", "dsc" ]: file_type = "dsc" else: @@ -353,7 +353,7 @@ class Upload(object): ########################################################################### def load_changes(self, filename): """ - @rtype boolean + @rtype: boolean @rvalue: whether the changes file was valid or not. We may want to reject even if this is True (see what gets put in self.rejects). This is simply to prevent us even trying things later which will @@ -1849,7 +1849,7 @@ distribution.""" user_email_address = utils.whoami() + " <%s>" % (cnf["Dinstall::MyAdminAddress"]) self.Subst["__REJECTOR_ADDRESS__"] = user_email_address self.Subst["__MANUAL_REJECT_MESSAGE__"] = reject_message - self.Subst["__CC__"] = "Cc: " + Cnf["Dinstall::MyEmailAddress"] + self.Subst["__CC__"] = "Cc: " + cnf["Dinstall::MyEmailAddress"] reject_mail_message = utils.TemplateSubst(self.Subst, rej_template) # Write the rejection email out as the .reason file os.write(reason_fd, reject_mail_message)