提交 9bc8cd81 编写于 作者: J James Troup

Fix database calls.

上级 d11d1790
...@@ -677,7 +677,7 @@ def parse_args(Options): ...@@ -677,7 +677,7 @@ def parse_args(Options):
if Options["Suite"]: if Options["Suite"]:
suite_ids_list = [] suite_ids_list = []
for suite in split_args(Options["Suite"]): 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: if suite_id == -1:
warn("suite '%s' not recognised." % (suite)) warn("suite '%s' not recognised." % (suite))
else: else:
...@@ -693,7 +693,7 @@ def parse_args(Options): ...@@ -693,7 +693,7 @@ def parse_args(Options):
if Options["Component"]: if Options["Component"]:
component_ids_list = [] component_ids_list = []
for component in split_args(Options["Component"]): 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: if component_id == -1:
warn("component '%s' not recognised." % (component)) warn("component '%s' not recognised." % (component))
else: else:
...@@ -714,7 +714,7 @@ def parse_args(Options): ...@@ -714,7 +714,7 @@ def parse_args(Options):
if architecture == "source": if architecture == "source":
check_source = 1 check_source = 1
else: else:
architecture_id = dak.lib.database.get_architecture_id(architecture) architecture_id = database.get_architecture_id(architecture)
if architecture_id == -1: if architecture_id == -1:
warn("architecture '%s' not recognised." % (architecture)) warn("architecture '%s' not recognised." % (architecture))
else: else:
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册