[gnome-build-meta/alatiera/ducktape] iso/eos-installer: patch polkit rules so they work with duktape
- From: Jordan Petridis <jpetridis src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-build-meta/alatiera/ducktape] iso/eos-installer: patch polkit rules so they work with duktape
- Date: Mon, 18 Jul 2022 08:46:55 +0000 (UTC)
commit 1b9ad3f0b6c0f4046116ff0d93baf626ab7b34e5
Author: Jordan Petridis <jordan centricular com>
Date: Mon Jul 18 10:03:44 2022 +0300
iso/eos-installer: patch polkit rules so they work with duktape
elements/iso/eos-installer.bst | 2 ++
...olkit-rules-use-non-sugary-closure-syntax.patch | 27 ++++++++++++++++++++++
2 files changed, 29 insertions(+)
---
diff --git a/elements/iso/eos-installer.bst b/elements/iso/eos-installer.bst
index 64a28df6a..bb84a5179 100644
--- a/elements/iso/eos-installer.bst
+++ b/elements/iso/eos-installer.bst
@@ -21,6 +21,8 @@ sources:
path: files/eos-installer/remove-endless-support.patch
- kind: patch
path: files/eos-installer/riscv.patch
+- kind: patch
+ path: files/eos-installer/0001-polkit-rules-use-non-sugary-closure-syntax.patch
depends:
- freedesktop-sdk.bst:bootstrap-import.bst
diff --git a/files/eos-installer/0001-polkit-rules-use-non-sugary-closure-syntax.patch
b/files/eos-installer/0001-polkit-rules-use-non-sugary-closure-syntax.patch
new file mode 100644
index 000000000..d813266cc
--- /dev/null
+++ b/files/eos-installer/0001-polkit-rules-use-non-sugary-closure-syntax.patch
@@ -0,0 +1,27 @@
+From fe5856d47d42d910ddae1de0fa11f1418a79ee79 Mon Sep 17 00:00:00 2001
+From: Jordan Petridis <jordan centricular com>
+Date: Mon, 18 Jul 2022 09:07:17 +0300
+Subject: [PATCH] polkit rules: use non-sugary closure syntax
+
+Polkit added a ducktape backend in 121 release,
+and it looks like it doesn't support the => closures
+---
+ eos-installer-data/90-eos-installer.rules | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/eos-installer-data/90-eos-installer.rules b/eos-installer-data/90-eos-installer.rules
+index 668d0632..f06b23e4 100644
+--- a/eos-installer-data/90-eos-installer.rules
++++ b/eos-installer-data/90-eos-installer.rules
+@@ -34,7 +34,7 @@ polkit.addRule(function(action, subject) {
+ return undefined;
+ });
+
+-polkit.addRule((action, subject) => {
++polkit.addRule(function(action, subject) {
+ // This rule should check only actions that are not already permitted by
+ // 20-gnome-initial-setup.rules, and permit them to both the live user and
+ // the gnome-initial-setup user.
+--
+2.36.1
+
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]