]> git.decadent.org.uk Git - dak.git/commitdiff
Fix database calls.
authorJames Troup <james@nocrew.org>
Sat, 20 May 2006 18:05:51 +0000 (13:05 -0500)
committerJames Troup <james@nocrew.org>
Sat, 20 May 2006 18:05:51 +0000 (13:05 -0500)
daklib/utils.py

index 79e245f91765c0ebdcf9758b040a826f79e0317d..c4c13669d92ca3a2aca761c2124e800ecf55e95a 100644 (file)
@@ -677,7 +677,7 @@ def parse_args(Options):
     if Options["Suite"]:
         suite_ids_list = []
         for suite in split_args(Options["Suite"]):
-            suite_id = dak.lib.database.get_suite_id(suite)
+            suite_id = database.get_suite_id(suite)
             if suite_id == -1:
                 warn("suite '%s' not recognised." % (suite))
             else:
@@ -693,7 +693,7 @@ def parse_args(Options):
     if Options["Component"]:
         component_ids_list = []
         for component in split_args(Options["Component"]):
-            component_id = dak.lib.database.get_component_id(component)
+            component_id = database.get_component_id(component)
             if component_id == -1:
                 warn("component '%s' not recognised." % (component))
             else:
@@ -714,7 +714,7 @@ def parse_args(Options):
             if architecture == "source":
                 check_source = 1
             else:
-                architecture_id = dak.lib.database.get_architecture_id(architecture)
+                architecture_id = database.get_architecture_id(architecture)
                 if architecture_id == -1:
                     warn("architecture '%s' not recognised." % (architecture))
                 else: