From 05aa3233f66dcdbb98c7546be843944206528b41 Mon Sep 17 00:00:00 2001 From: Anthony Towns Date: Sat, 29 Jul 2006 00:46:08 +1000 Subject: [PATCH] add support for udebs in any section containing "debian-installer" --- dak/process_new.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/dak/process_new.py b/dak/process_new.py index e5de419e..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"): -- 2.39.2