Closed stefanjudis closed 8 years ago
I am using the electron-packager module and stumbled into the case that the callback of extract-zip is called multiple time in error case.
electron-packager
extract-zip
The bug is reproducible here https://github.com/stefanjudis/extract-zip-bug-example.
These lines
'use strict'; var extract = require( 'extract-zip' ); extract( __dirname + '/electron-v0.36.2-darwin-x64.zip', { dir : __dirname + '/dist' }, function( error ) { console.log( 'Calling with error :' + error ); } );
lead to this output
stefan @ stefan-mac: ~/Sites/extract-zip-bug-example master ヾ(⌐■_■)ノ > node index.js 39340031 Calling with error :Error: EEXIST: file already exists, symlink 'Versions/Current/Electron Framework' -> '/Users/stefan/Sites/extract-zip-bug-example/dist/Electron.app/Contents/Frameworks/Electron Framework.framework/Electron Framework' 39340031 Calling with error :undefined stefan @ stefan-mac: ~/Sites/extract-zip-bug-example master ヾ(⌐■_■)ノ > node --version v5.0.0
I am using the
electron-packager
module and stumbled into the case that the callback ofextract-zip
is called multiple time in error case.The bug is reproducible here https://github.com/stefanjudis/extract-zip-bug-example.
These lines
lead to this output