From: Ansgar Burchardt Date: Thu, 31 Jul 2014 19:21:23 +0000 (+0200) Subject: extract_component_from_section: avoid unneeded database lookup X-Git-Url: https://git.decadent.org.uk/gitweb/?a=commitdiff_plain;h=8ddfb3391d47d9b73c90948b521b6b0a76add4b7;p=dak.git extract_component_from_section: avoid unneeded database lookup --- diff --git a/daklib/utils.py b/daklib/utils.py index 3ae8d289..90c87bf4 100644 --- a/daklib/utils.py +++ b/daklib/utils.py @@ -155,11 +155,7 @@ def extract_component_from_section(section, session=None): # Expand default component if component == "": - comp = get_component(section, session) - if comp is None: - component = "main" - else: - component = comp.component_name + component = "main" return (section, component)