X-Git-Url: https://git.decadent.org.uk/gitweb/?a=blobdiff_plain;ds=inline;f=katie.py;h=e898c2f01a41dff16726f4fa47ba41b440c67942;hb=bfa2095bc1519f2b31faf9d2cde70ea6ef32adbc;hp=b6428d4c0954a5dda0cc7661f57814f70fccbe85;hpb=3753845df4172f85764a55ac5e24ba0c626799ce;p=dak.git diff --git a/katie.py b/katie.py index b6428d4c..e898c2f0 100644 --- a/katie.py +++ b/katie.py @@ -2,7 +2,7 @@ # Utility functions for katie # Copyright (C) 2001, 2002, 2003, 2004 James Troup -# $Id: katie.py,v 1.48 2004-06-17 15:02:02 troup Exp $ +# $Id: katie.py,v 1.51 2004-11-27 18:02:22 troup Exp $ # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by @@ -30,9 +30,9 @@ from types import *; re_isanum = re.compile (r"^\d+$"); re_default_answer = re.compile(r"\[(.*)\]"); -re_fdnic = re.compile("\n\n"); -re_bin_only_nmu_of_mu = re.compile("\.\d+\.\d+$"); -re_bin_only_nmu_of_nmu = re.compile("\.\d+$"); +re_fdnic = re.compile(r"\n\n"); +re_bin_only_nmu_of_mu = re.compile(r"\.\d+\.\d+$"); +re_bin_only_nmu_of_nmu = re.compile(r"\.\d+$"); ############################################################################### @@ -705,7 +705,7 @@ distribution."""; return okay ################################################################################ - + def in_override_p (self, package, component, suite, binary_type, file): files = self.pkg.files; @@ -726,7 +726,7 @@ distribution."""; type_id = db_access.get_override_type_id(type); # FIXME: nasty non-US speficic hack - if component[:7].lower() == "non-us/": + 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"