From 8ddfb3391d47d9b73c90948b521b6b0a76add4b7 Mon Sep 17 00:00:00 2001 From: Ansgar Burchardt Date: Thu, 31 Jul 2014 21:21:23 +0200 Subject: [PATCH] extract_component_from_section: avoid unneeded database lookup --- daklib/utils.py | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) 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) -- 2.39.2