[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

[dak/master] 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 3ae8d28..90c87bf 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)
 
-- 
1.7.10.4


Reply to: