X-Git-Url: https://git.decadent.org.uk/gitweb/?a=blobdiff_plain;f=daklib%2Futils.py;h=2cf6871c092e60089cda94ef72cde857231cef53;hb=c24bd56cce877f2d9a67c44d27604358e24d18e8;hp=401712381674a2fb83c9ec71e6b3a7e3336972fe;hpb=2919be54694c13575d1ba9b6dc3d1c1ffc50aae7;p=dak.git diff --git a/daklib/utils.py b/daklib/utils.py index 40171238..2cf6871c 100644 --- a/daklib/utils.py +++ b/daklib/utils.py @@ -59,7 +59,7 @@ from textutils import fix_maintainer from regexes import re_html_escaping, html_escaping, re_single_line_field, \ re_multi_line_field, re_srchasver, re_taint_free, \ re_re_mark, re_whitespace_comment, re_issource, \ - re_is_orig_source, re_build_dep_arch, re_parse_maintainer + re_build_dep_arch, re_parse_maintainer from formats import parse_format, validate_changes_format from srcformats import get_format_from_string @@ -1325,3 +1325,17 @@ def parse_built_using(control): bu.append((source_name, source_version)) return bu + +################################################################################ + +def is_in_debug_section(control): + """binary package is a debug package + + @type control: dict-like + @param control: control file of binary package + + @rtype Boolean + @return: True if the binary package is a debug package + """ + section = control['Section'].split('/', 1)[-1] + return section == "debug"