[gnome-build-meta/alatiera/ducktape-2: 2/2] iso/eos-installer: add another patch for duktape compat
- From: Jordan Petridis <jpetridis src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-build-meta/alatiera/ducktape-2: 2/2] iso/eos-installer: add another patch for duktape compat
- Date: Tue, 19 Jul 2022 11:19:48 +0000 (UTC)
commit e296a3b716f6cd112ef89130df1833e10b4f9c7f
Author: Jordan Petridis <jordan centricular com>
Date: Tue Jul 19 14:19:19 2022 +0300
iso/eos-installer: add another patch for duktape compat
elements/iso/eos-installer.bst | 2 ++
.../0001-polkit-rules-replace-const-with-var.patch | 26 ++++++++++++++++++++++
2 files changed, 28 insertions(+)
---
diff --git a/elements/iso/eos-installer.bst b/elements/iso/eos-installer.bst
index bb84a5179..ea5e67f23 100644
--- a/elements/iso/eos-installer.bst
+++ b/elements/iso/eos-installer.bst
@@ -23,6 +23,8 @@ sources:
path: files/eos-installer/riscv.patch
- kind: patch
path: files/eos-installer/0001-polkit-rules-use-non-sugary-closure-syntax.patch
+- kind: patch
+ path: files/eos-installer/0001-polkit-rules-replace-const-with-var.patch
depends:
- freedesktop-sdk.bst:bootstrap-import.bst
diff --git a/files/eos-installer/0001-polkit-rules-replace-const-with-var.patch
b/files/eos-installer/0001-polkit-rules-replace-const-with-var.patch
new file mode 100644
index 000000000..46f338f62
--- /dev/null
+++ b/files/eos-installer/0001-polkit-rules-replace-const-with-var.patch
@@ -0,0 +1,26 @@
+From 0af3651ce4d6d8d58ada85d6f832639ffc51133c Mon Sep 17 00:00:00 2001
+From: Jordan Petridis <jordan centricular com>
+Date: Tue, 19 Jul 2022 14:10:39 +0300
+Subject: [PATCH] polkit rules: replace const with var
+
+So its es5 compatible per polkit spec
+---
+ 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 f06b23e4..f7b23605 100644
+--- a/eos-installer-data/90-eos-installer.rules
++++ b/eos-installer-data/90-eos-installer.rules
+@@ -43,7 +43,7 @@ polkit.addRule(function(action, subject) {
+ !(subject.user === 'live' && isLiveSystem))
+ return undefined;
+
+- const allowedUdisksActions = [
++ var allowedUdisksActions = [
+ 'org.freedesktop.udisks2.filesystem-mount',
+ 'org.freedesktop.udisks2.open-device',
+ 'org.freedesktop.udisks2.open-device-system',
+--
+2.36.1
+
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]