]> err.no Git - dak/commitdiff
add support for udebs in any section containing "debian-installer"
authorAnthony Towns <aj@azure.humbug.org.au>
Fri, 28 Jul 2006 14:46:08 +0000 (00:46 +1000)
committerAnthony Towns <aj@azure.humbug.org.au>
Fri, 28 Jul 2006 14:46:08 +0000 (00:46 +1000)
dak/process_new.py

index e5de419e825e3779c83deb12c15d114ce21f94f0..ec5987c41248077f582a751eee220c8f0c08795e 100755 (executable)
@@ -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"):