Martin Pitt [2014-10-17 15:44 +0200]:
> So ideally the condition would be
> 
>   ConditionPathExists=!@udevlibexecdir@/hwdb.bin OR
>   ConditionDirectoryNotEmpty=/etc/udev/hwdb.d/
> 
> but this isn't possible AFAIK.

Hah, I stand corrected. So this could be

  ConditionPathExists=|!@udevlibexecdir@/hwdb.bin
  ConditionPathExists=|/etc/udev/hwdb.bin
  ConditionDirectoryNotEmpty=|/etc/udev/hwdb.d/

for catching all the edge cases, if we want to go ahead with the
explicit --vendor option instead of putting this logic into hwdb
--update itself. (I'd otherwise just replicate the logic again in the
Debian/Ubuntu package trigger).

Thanks,

Martin
-- 
Martin Pitt                        | http://www.piware.de
Ubuntu Developer (www.ubuntu.com)  | Debian Developer  (www.debian.org)

Attachment: signature.asc
Description: Digital signature

_______________________________________________
systemd-devel mailing list
systemd-devel@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/systemd-devel

Reply via email to