X-Git-Url: https://git.decadent.org.uk/gitweb/?a=blobdiff_plain;f=daklib%2Futils.py;h=413bcb6dcc79b51f245ee87a151216953c28713b;hb=34d31a60a7db0024d3194adf0004ff916de34b0a;hp=fd4d7bbf8ed2fa6478836c229d8f138b874ec6f7;hpb=a4eef13f8450fe8b109f4fafc074d50f0fda0a7c;p=dak.git diff --git a/daklib/utils.py b/daklib/utils.py index fd4d7bbf..413bcb6d 100755 --- a/daklib/utils.py +++ b/daklib/utils.py @@ -143,10 +143,11 @@ def extract_component_from_section(section): # Expand default component if component == "": - if Cnf.has_key("Component::%s" % section): - component = section - else: + comp = get_component(section) + if comp is None: component = "main" + else: + component = comp.componant_name return (section, component)