if not recheck(u, session):
return
- # FIXME: This does need byhand checks added!
- new = determine_new(u.pkg.changes, files)
+ new, byhand = determine_new(u.pkg.changes, files)
+ if byhand:
+ # TODO: Fix this and make sure it doesn't complain when we've
+ # got already processed byhand components
+ print "Warning: This has byhand components and probably shouldn't be in NEW."
+ print "Contact an ftpmaster as this needs to be dealt with by them"
+ continue
if new:
do_new(u, session)
else:
u.check_source_against_db(deb_filename, session)
u.pkg.changes["suite"] = u.pkg.changes["distribution"]
- new = determine_new(u.pkg.changes, files, 0, session)
+ new, byhand = determine_new(u.pkg.changes, files, 0, session)
htmlname = changes["source"] + "_" + changes["version"] + ".html"
sources.add(htmlname)
"""
new = {}
+ byhand = {}
# Build up a list of potentially new things
for name, f in files.items():
- # Skip byhand elements
-# if f["type"] == "byhand":
-# continue
+ # Keep a record of byhand elements
+ if f["section"] == "byhand":
+ byhand[name] = 1
+ continue
pkg = f["package"]
priority = f["priority"]
section = f["section"]
if new[pkg].has_key("othercomponents"):
print "WARNING: %s already present in %s distribution." % (pkg, new[pkg]["othercomponents"])
- return new
+ return new, byhand
################################################################################
# Statically handled queues
target = None
- for q in ["new", "autobyhand", "byhand"]:
+ for q in ["autobyhand", "byhand", "new"]:
if QueueInfo[q]["is"](u):
target = q
break