[neon/neon/settings/Neon/release-lts] debian: don't error out on misisng pipewire
Harald Sitter
null at kde.org
Tue Nov 24 11:42:17 GMT 2020
Git commit 8bc4f45a50edaf212adb4ea84675c1c7877c528e by Harald Sitter.
Committed on 24/11/2020 at 11:42.
Pushed by sitter into branch 'Neon/release-lts'.
don't error out on misisng pipewire
I think (tm) this has potential of failing depending on unpack order,
so make sure we don't trip over a missing pipewire
M +2 -1 debian/neon-settings-2.postinst
https://invent.kde.org/neon/neon/settings/commit/8bc4f45a50edaf212adb4ea84675c1c7877c528e
diff --git a/debian/neon-settings-2.postinst b/debian/neon-settings-2.postinst
index f18aae6..e7b4898 100644
--- a/debian/neon-settings-2.postinst
+++ b/debian/neon-settings-2.postinst
@@ -80,9 +80,10 @@ fi
# we cannot simply preset-all since that'd screw with defaults most likely.
# Instead we'll need to manually preset the services for which we have expectations.
if [ -d /run/systemd/system ]; then
+ # This may error if we run before pipewire unpacks. Make sure to || true it!
systemctl --user --global preset \
pipewire.socket \
- pipewire.service
+ pipewire.service || true
fi
exit 0
More information about the Neon-commits
mailing list