upower: make dbusmock dependency optional

Reported-by: Joe Locash <jlocash@gmail.com>
This commit is contained in:
Xi Ruoyao 2022-06-07 16:41:53 +08:00
parent 7dd1546260
commit fc7f3a51bb
No known key found for this signature in database
GPG Key ID: ACAAD20E19E710E3

View File

@ -123,11 +123,22 @@
<title>Installation of UPower</title>
<para>
First, remove an unneded dependency from a test:
First, remove an unneeded dependency from a test:
</para>
<screen><userinput>sed '/parse_version/d' -i src/linux/integration-test.py</userinput></screen>
<!--
https://gitlab.freedesktop.org/upower/upower/-/merge_requests/142
Please remove at next upower update.
-->
<para>
Make the dependency on dbusmock optional:
</para>
<screen><userinput>sed '/unittest_inspector.*check:/s/true/false/' \
-i src/meson.build</userinput></screen>
<para>
Install <application>UPower</application> by running the following
commands: