X-Git-Url: https://git.decadent.org.uk/gitweb/?a=blobdiff_plain;f=daklib%2Fqueue.py;h=6e1f3893d66c5ad01ab93da39eda638be5f6e8cb;hb=1ccf225a945cbaefa60902a650a3156e5a4e8732;hp=2149dff30a39dfd6febb55c9a1763b3ec6560d28;hpb=141673ae65e8160c78464c1eac1ecb615aedfc54;p=dak.git diff --git a/daklib/queue.py b/daklib/queue.py index 2149dff3..6e1f3893 100644 --- a/daklib/queue.py +++ b/daklib/queue.py @@ -134,7 +134,7 @@ class Upload: d_changes[i] = changes[i] ## dsc for i in [ "source", "version", "maintainer", "fingerprint", - "uploaders", "bts changelog" ]: + "uploaders", "bts changelog", "dm-upload-allowed" ]: if dsc.has_key(i): d_dsc[i] = dsc[i] ## dsc_files @@ -471,9 +471,6 @@ distribution.""" section = files[file]["section"] override_section = files[file]["override section"] if section.lower() != override_section.lower() and section != "-": - # Ignore this; it's a common mistake and not worth whining about - if section.lower() == "non-us/main" and override_section.lower() == "non-us": - continue summary += "%s: package says section is %s, override says %s.\n" % (file, section, override_section) priority = files[file]["priority"] override_priority = files[file]["override priority"] @@ -673,10 +670,6 @@ distribution.""" component_id = database.get_component_id(component) type_id = database.get_override_type_id(type) - # FIXME: nasty non-US speficic hack - if component.lower().startswith("non-us/"): - component = component[7:] - q = self.projectB.query("SELECT s.section, p.priority FROM override o, section s, priority p WHERE package = '%s' AND suite = %s AND component = %s AND type = %s AND o.section = s.id AND o.priority = p.id" % (package, suite_id, component_id, type_id)) result = q.getresult() @@ -831,7 +824,7 @@ SELECT s.version, su.suite_name FROM source s, src_associations sa, suite su # the .orig.tar.gz is a duplicate of the one in the archive]; if # you're iterating over 'files' and call this function as part of # the loop, be sure to add a check to the top of the loop to - # ensure you haven't just tried to derefernece the deleted entry. + # ensure you haven't just tried to dereference the deleted entry. # **WARNING** def check_dsc_against_db(self, file): @@ -932,10 +925,12 @@ SELECT s.version, su.suite_name FROM source s, src_associations sa, suite su in_unchecked = os.path.join(self.Cnf["Dir::Queue::Unchecked"],dsc_file) # See process_it() in 'dak process-unchecked' for explanation of this - if os.path.exists(in_unchecked): + # in_unchecked check dropped by ajt 2007-08-28, how did that + # ever make sense? + if os.path.exists(in_unchecked) and False: return (self.reject_message, in_unchecked) else: - for dir in [ "Accepted", "New", "Byhand" ]: + for dir in [ "Accepted", "New", "Byhand", "ProposedUpdates", "OldProposedUpdates" ]: in_otherdir = os.path.join(self.Cnf["Dir::Queue::%s" % (dir)],dsc_file) if os.path.exists(in_otherdir): in_otherdir_fh = utils.open_file(in_otherdir)