This commit is contained in:
Kevin Sawicki 2014-07-25 17:08:10 -07:00
parent 6f29710d88
commit 70621afe62

View File

@ -361,6 +361,9 @@ class Package
traversePath(path.join(@path, 'node_modules'))
nativeModulePaths
# Get the incompatible native modules that this package depends on.
# This recurses through all dependencies and requires all modules that
# contain a `.node` file.
getIncompatibleNativeModules: ->
localStorageKey = "installed-packages:#{@name}:#{@metadata.version}"
try
@ -384,7 +387,9 @@ class Package
incompatibleNativeModules
# Public: Is this package compatible with this version of Atom?
# Incompatible packages cannot be activated.
# Incompatible packages cannot be activated. This will include packages
# installed to ~/.atom/packages that were built against node 0.11.10 but
# now need to be upgrade to node 0.11.13.
#
# Returns a {Boolean}, true if compatible, false if incompatible.
isCompatible: ->