X-Git-Url: https://git.decadent.org.uk/gitweb/?a=blobdiff_plain;ds=sidebyside;f=dak%2Fprocess_new.py;h=ec5987c41248077f582a751eee220c8f0c08795e;hb=05aa3233f66dcdbb98c7546be843944206528b41;hp=3a1074c49202e7a5ce87373461fabcf83f6e6fb9;hpb=567c91b57f1e6af8da3e9e0ab5eeffa14796a256;p=dak.git diff --git a/dak/process_new.py b/dak/process_new.py index 3a1074c4..ec5987c4 100755 --- a/dak/process_new.py +++ b/dak/process_new.py @@ -328,8 +328,8 @@ def check_valid (new): new[pkg]["section id"] = daklib.database.get_section_id(section) new[pkg]["priority id"] = daklib.database.get_priority_id(new[pkg]["priority"]) # Sanity checks - if (section == "debian-installer" and type != "udeb") or \ - (section != "debian-installer" and type == "udeb"): + di = section.find("debian-installer") != -1 + if (di and type != "udeb") or (not di and type == "udeb"): new[pkg]["section id"] = -1 if (priority == "source" and type != "dsc") or \ (priority != "source" and type == "dsc"): @@ -950,7 +950,7 @@ def main(): # Kill me now? **FIXME** Cnf["Dinstall::Options::No-Mail"] = "" - bcc = "X-DAK: dak process-new\nX-Katie: this header is obsolete" + bcc = "X-DAK: dak process-new\nX-Katie: lisa $Revision: 1.31 $" if Cnf.has_key("Dinstall::Bcc"): Upload.Subst["__BCC__"] = bcc + "\nBcc: %s" % (Cnf["Dinstall::Bcc"]) else: