mirror of
https://github.com/atom/atom.git
synced 2026-01-23 05:48:10 -05:00
Unload package before upgrade
This commit is contained in:
@@ -45,6 +45,7 @@ install = ({name, version}, callback) ->
|
||||
activateOnSuccess = !atom.isPackageDisabled(name)
|
||||
activateOnFailure = atom.isPackageActive(name)
|
||||
atom.deactivatePackage(name) if atom.isPackageActive(name)
|
||||
atom.unloadPackage(name) if atom.isPackageLoaded(name)
|
||||
|
||||
apm = require.resolve '.bin/apm'
|
||||
apmProcess = spawn(apm, ['install', "#{name}@#{version}"])
|
||||
|
||||
Reference in New Issue
Block a user