lifecycle: don't insert a requires entry if it would be empty
This commit is contained in:
parent
ed56d2b33b
commit
1964a99e5d
1 changed files with 1 additions and 1 deletions
|
@ -207,7 +207,7 @@ lif_lifecycle_query_dependents(const struct lif_execute_opts *opts, struct lif_i
|
||||||
free(entry->data);
|
free(entry->data);
|
||||||
entry->data = strdup(final_deps);
|
entry->data = strdup(final_deps);
|
||||||
}
|
}
|
||||||
else
|
else if (*final_deps)
|
||||||
lif_dict_add(&iface->vars, "requires", strdup(final_deps));
|
lif_dict_add(&iface->vars, "requires", strdup(final_deps));
|
||||||
|
|
||||||
lif_environment_free(&envp);
|
lif_environment_free(&envp);
|
||||||
|
|
Loading…
Reference in a new issue