Skip to content

install/*: add explicit return 0 in handful of places

Emil Velikov requested to merge xexaxo/mkinitcpio:modules-errcode into master

The add__modules API return error if no module was added. If that function is the last one in the function, its return code implicitly propagates as the function return value.

There is the assumption that add_checked_modules amongst others, should always get at least one module or error otherwise. Although we currently do not check or enforce that. Thus follow-up commands mask that assumption.

For the time being, be clear with out present state and return 0. As follow-up we might check if any of the functions fail and propagate that instead.

Closes: #218 (closed)

Merge request reports