X-Git-Url: https://git.decadent.org.uk/gitweb/?a=blobdiff_plain;f=daklib%2Futils.py;h=8bc1b2c7c2c4db01405b6d375e8e30d2fb8981ad;hb=a95c2b25c7bf4a55a78e273c2cb133ff93019306;hp=133500c66fc90883a6be95c6b535fbb6302fee78;hpb=c43e58d8aeea3dfbbad8f289fa02b97c7a9e0169;p=dak.git diff --git a/daklib/utils.py b/daklib/utils.py index 133500c6..8bc1b2c7 100755 --- a/daklib/utils.py +++ b/daklib/utils.py @@ -138,7 +138,7 @@ def our_raw_input(prompt=""): ################################################################################ -def extract_component_from_section(section): +def extract_component_from_section(section, session=None): component = "" if section.find('/') != -1: @@ -146,11 +146,11 @@ def extract_component_from_section(section): # Expand default component if component == "": - comp = get_component(section) + comp = get_component(section, session) if comp is None: component = "main" else: - component = comp.componant_name + component = comp.component_name return (section, component)