lifecycle: don't insert a requires entry if it would be empty

This commit is contained in:
Ariadne Conill 2020-07-31 17:12:13 -06:00
parent ed56d2b33b
commit 1964a99e5d

View file

@ -207,7 +207,7 @@ lif_lifecycle_query_dependents(const struct lif_execute_opts *opts, struct lif_i
free(entry->data);
entry->data = strdup(final_deps);
}
else
else if (*final_deps)
lif_dict_add(&iface->vars, "requires", strdup(final_deps));
lif_environment_free(&envp);