summarylogtreecommitdiffstats
path: root/use-system-tools.patch
diff options
context:
space:
mode:
authorMatthias Lisin2019-10-30 00:47:31 +0100
committerMatthias Lisin2019-10-30 00:47:31 +0100
commit837cec2a29149566b224600048c8e9d1a25f8344 (patch)
treece57d548af5ba10a9d4fc0e1323025a1736f8b8e /use-system-tools.patch
parentf98748263a000738a1500b0dc835320bac74a430 (diff)
downloadaur-837cec2a29149566b224600048c8e9d1a25f8344.tar.gz
upgpkg: ubports-installer-git 3e68c62a
- Update disable-update-check.patch - Force use of system android-tools
Diffstat (limited to 'use-system-tools.patch')
-rw-r--r--use-system-tools.patch21
1 files changed, 21 insertions, 0 deletions
diff --git a/use-system-tools.patch b/use-system-tools.patch
new file mode 100644
index 00000000000..882deb6000b
--- /dev/null
+++ b/use-system-tools.patch
@@ -0,0 +1,21 @@
+diff -ura package.orig/src/utils.js package.new/src/utils.js
+--- package.orig/src/utils.js 2019-10-30 00:09:52.833991579 +0100
++++ package.new/src/utils.js 2019-10-30 00:24:23.422742604 +0100
+@@ -222,16 +222,9 @@
+ process.exit(-1);
+ }
+
+-let toolpath = global.packageInfo.package
+- ? path.join(
+- __dirname,
+- "../../app.asar.unpacked/platform-tools",
+- platforms[os.platform()]
+- )
+- : path.join(__dirname, "..", "platform-tools", platforms[os.platform()]);
+ function execTool(tool, args, callback) {
+ exec(
+- [path.join(toolpath, tool)].concat(args).join(" "),
++ [tool].concat(args).join(" "),
+ { options: { maxBuffer: 1024 * 1024 * 2 } },
+ callback
+ );