X-Git-Url: https://git.decadent.org.uk/gitweb/?a=blobdiff_plain;f=daklib%2Futils.py;fp=daklib%2Futils.py;h=d33ec308366415e874cf2dc1383a63666f5cfeb2;hb=283a1be8a19c9f89987dd96ec6247217973ac5a7;hp=401712381674a2fb83c9ec71e6b3a7e3336972fe;hpb=9a095db72da5d19d08d8787af1f692cdd552b940;p=dak.git diff --git a/daklib/utils.py b/daklib/utils.py index 40171238..d33ec308 100644 --- a/daklib/utils.py +++ b/daklib/utils.py @@ -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"