chiark / gitweb /
shared/install: avoid prematurely rejecting "missing" units
authorDave Reisner <dreisner@archlinux.org>
Fri, 31 Oct 2014 00:12:05 +0000 (20:12 -0400)
committerDave Reisner <dreisner@archlinux.org>
Fri, 31 Oct 2014 12:19:26 +0000 (08:19 -0400)
commit0ffce503cd6e5a5ff5ba5cd1cc23684cfb8bb9e3
tree67270f83c439376c03962d7ef96f8dab08801dca
parent6bcf0cf60c7cbfec2a733a28c7fd31ddf4a0024d
shared/install: avoid prematurely rejecting "missing" units

f7101b7368df copied some logic to prevent enabling masked units, but
also added a check which causes attempts to enable templated units to
fail. Since we know the logic beyond this check will properly handle
units which truly do not exist, we can rely on the unit file state
comparison to suffice for expressing the intent of f7101b7368df.

ref: https://bugs.archlinux.org/task/42616
src/shared/install.c