diff options
author | Elvis Pranskevichus <elvis@magic.io> | 2016-11-20 12:54:48 -0500 |
---|---|---|
committer | Göktürk Yüksek <gokturk@gentoo.org> | 2016-11-21 00:12:10 -0500 |
commit | 60deb5cf5ced4e641e8d6dbf01633083efb17509 (patch) | |
tree | 7df38c1836979521b7c4b26f47a31d7949c6fc8e /app-editors/atom/files | |
parent | app-editors/atom: Use newer bash syntax (diff) | |
download | gentoo-60deb5cf5ced4e641e8d6dbf01633083efb17509.tar.gz gentoo-60deb5cf5ced4e641e8d6dbf01633083efb17509.tar.bz2 gentoo-60deb5cf5ced4e641e8d6dbf01633083efb17509.zip |
app-editors/atom: Drop old versions
Gentoo-Bug: https://bugs.gentoo.org/show_bug.cgi?id=596758
Package-Manager: portage-2.3.0
Diffstat (limited to 'app-editors/atom/files')
-rw-r--r-- | app-editors/atom/files/asar-require.patch | 45 |
1 files changed, 0 insertions, 45 deletions
diff --git a/app-editors/atom/files/asar-require.patch b/app-editors/atom/files/asar-require.patch deleted file mode 100644 index a00169b0b778..000000000000 --- a/app-editors/atom/files/asar-require.patch +++ /dev/null @@ -1,45 +0,0 @@ -diff --git a/usr/share/atom/resources/app/apm/node_modules/asar-require/lib/require.js b/usr/share/atom/resources/app/apm/node_modules/asar-require/lib/require.js -index 47cb1bb..67895d5 100644 ---- a/usr/share/atom/resources/app/apm/node_modules/asar-require/lib/require.js -+++ b/usr/share/atom/resources/app/apm/node_modules/asar-require/lib/require.js -@@ -1,5 +1,7 @@ - (function() { -- var asar, asarStatsToFsStats, fakeTime, fs, gid, nextInode, path, readFileSync, realpathSync, splitPath, statSync, uid; -+ var asar, asarStatsToFsStats, fakeTime, fs, gid, nextInode, path, readFileSync, realpathSync, splitPath, statSync, uid; -+ -+ var module, module_findPath, _e; - - asar = require('asar'); - -@@ -7,6 +9,12 @@ - - path = require('path'); - -+ try { -+ module = require('module'); -+ } catch (_e) { -+ module = null; -+ } -+ - splitPath = function(p) { - var index; - if (typeof p !== 'string') { -@@ -124,5 +132,18 @@ - } - return path.join(realpathSync(asarPath), filePath); - }; -+ -+ if (module && module._findPath) { -+ module_findPath = module._findPath; -+ -+ module._findPath = function(request, paths, isMain) { -+ var asarPath, filePath, isAsar, _ref; -+ _ref = splitPath(request), isAsar = _ref[0], asarPath = _ref[1], filePath = _ref[2]; -+ if (isAsar) { -+ return request; -+ } -+ return module_findPath.apply(this, arguments); -+ } -+ } - - }).call(this); |