Commit ef578e25 authored by Kel Modderman's avatar Kel Modderman

Extend debian/startpar/patches/04_makeboot_loop_upper_bound.patch to print an…

Extend debian/startpar/patches/04_makeboot_loop_upper_bound.patch to print an error when the loop threshold is breached.
parent f92f79d5
......@@ -134,8 +134,10 @@ static void add_depend(struct makenode *node, const char *dst)
dep = add_target(dst);
loop = 0;
if (check_loop(dep, node))
if (check_loop(dep, node)) {
fprintf(stderr, "loop threshold of %d breached for %s\n", loop, dst);
return;
}
dep->select = new_list(node, dep->select);
dep->num_sels++;
node->depend = new_list(dep, node->depend);
......
......@@ -16,3 +16,15 @@ Status: Not submitted upstream. Work in progress.
return 1;
if (check_loop(s->node, src))
return 1;
@@ -134,8 +134,10 @@ static void add_depend(struct makenode *
dep = add_target(dst);
loop = 0;
- if (check_loop(dep, node))
+ if (check_loop(dep, node)) {
+ fprintf(stderr, "loop threshold of %d breached for %s\n", loop, dst);
return;
+ }
dep->select = new_list(node, dep->select);
dep->num_sels++;
node->depend = new_list(dep, node->depend);
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment