We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a339f3b commit ada871cCopy full SHA for ada871c
1 file changed
src/pkgdev/scripts/pkgdev_bugs.py
@@ -453,10 +453,18 @@ def observe(node: GraphNode):
453
node.file_bug(api_key, auto_cc_arches, observe)
454
455
456
+def _parse_targets(search_repo, targets):
457
+ for _, target in targets:
458
+ try:
459
+ yield max(search_repo.itermatch(target))
460
+ except ValueError:
461
+ raise ValueError(f"Restriction {target} has no match in repository")
462
+
463
464
@bugs.bind_main_func
465
def main(options, out: Formatter, err: Formatter):
466
search_repo = options.search_repo
- targets = [max(search_repo.itermatch(target)) for _, target in options.targets]
467
+ targets = list(_parse_targets(search_repo, options.targets))
468
d = DependencyGraph(out, err, options)
469
d.build_full_graph(targets)
470
d.merge_cycles()
0 commit comments