hunk.code_window:  *     resolveTarball(pkg)
    */
   module.exports = function resolveTarball (pkg) {
     const name = getTarballName(pkg.raw)
     return Promise.resolve({
       name,
  
hunk.labels: keep keep keep keep replace keep keep keep
hunk.after_edit:   const name = getTarballName(pkg.rawSpec)
  
hunk.file_path: lib/resolve/tarball.js
hunk.type: replace
file: 'use strict'
  const fs = require('mz/fs')
  
  /*
   * Removes a symlink
   */
  
  module.exports = function unsymlink (path) {
    return fs.lstat(path)
    .then(stat => {
      if (stat.isSymbolicLink()) return fs.unlink(path)
      throw new Error('Can\'t unlink ' + path)
    })
    .catch(err => {
      if (err.code !== 'ENOENT') throw err
    })
  }
  