[tracker-miners] meson: Fix bad string comparisons in create-miner-symlinks.sh script
- From: Sam Thursfield <sthursfield src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [tracker-miners] meson: Fix bad string comparisons in create-miner-symlinks.sh script
- Date: Sun, 18 Nov 2018 19:34:54 +0000 (UTC)
commit 01f1b4f84a1c5adccfd5dc7ba0fcbf2f262309f7
Author: Sam Thursfield <sam afuera me uk>
Date: Sun Nov 18 20:33:51 2018 +0100
meson: Fix bad string comparisons in create-miner-symlinks.sh script
This script creates symlinks from $prefix/share/tracker/miners to the
real D-Bus .service files, which usually live in /usr/share/dbus-1.
The script was comparing strings incorrectly, leading to misbehaviour.
See https://gitlab.gnome.org/GNOME/tracker-miners/issues/38
src/create-miner-symlinks.sh | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/src/create-miner-symlinks.sh b/src/create-miner-symlinks.sh
index 79560b9e2..b4c2f00bf 100644
--- a/src/create-miner-symlinks.sh
+++ b/src/create-miner-symlinks.sh
@@ -13,9 +13,9 @@ have_tracker_miner_rss="$4"
mkdir -p ${DESTDIR}/${tracker_miner_services_dir}
ln -sf "${dbus_services_dir}/org.freedesktop.Tracker1.Miner.Extract.service"
"${DESTDIR}/${tracker_miner_services_dir}/"
-if [[ "$have_tracker_miner_fs" -eq "true" ]]; then
+if [[ "$have_tracker_miner_fs" == "true" ]]; then
ln -sf "${dbus_services_dir}/org.freedesktop.Tracker1.Miner.Files.service"
"${DESTDIR}/${tracker_miner_services_dir}/"
fi
-if [[ "$have_tracker_miner_rss" -eq "true" ]]; then
+if [[ "$have_tracker_miner_rss" == "true" ]]; then
ln -sf "${dbus_services_dir}/org.freedesktop.Tracker1.Miner.RSS.service"
"${DESTDIR}/${tracker_miner_services_dir}/"
fi
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]