diff options
author | Bruce Zhang | 2019-08-06 08:52:03 +0800 |
---|---|---|
committer | Bruce Zhang | 2019-08-06 08:52:03 +0800 |
commit | 055ce1f5fb3d1cc7a49a2d6b41e051fda5100941 (patch) | |
tree | e0942787b4d489bb3b8d2e4b6ff4e3b17a7769bf /rootless.patch | |
parent | 8ac5b7c3b8add3e0ddc8465bb2794af49cdb5cb0 (diff) | |
download | aur-055ce1f5fb3d1cc7a49a2d6b41e051fda5100941.tar.gz |
upgpkg: ubports-installer 0.2.5b-1
upstream release
ubports-installer
Diffstat (limited to 'rootless.patch')
-rw-r--r-- | rootless.patch | 27 |
1 files changed, 0 insertions, 27 deletions
diff --git a/rootless.patch b/rootless.patch deleted file mode 100644 index b6cc60a91669..000000000000 --- a/rootless.patch +++ /dev/null @@ -1,27 +0,0 @@ -diff -ura package.orig/src/utils.js package.new/src/utils.js ---- package.orig/src/utils.js 2019-03-15 18:59:19.000000000 +0800 -+++ package.new/src/utils.js 2019-03-20 14:42:19.202514790 +0800 -@@ -16,7 +16,6 @@ - const tmp = require('tmp'); - const exec = require('child_process').exec; - const cp = require('child_process'); --const sudo = require('electron-sudo'); - const winston = require('winston'); - const getos = require('getos'); - const commandExistsSync = require('command-exists').sync; -@@ -375,14 +374,7 @@ - } - - var needRoot = () => { -- if ( -- (os.platform() === "win32") || -- isSnap() || -- !commandExistsSync("sudo") || -- global.installProperties.noRoot || -- global.installProperties.simulate -- ) return false; -- else return !process.env.SUDO_UID -+ return false - } - - var ensureRoot = (m) => { |