Fix package update from local repository mirror.
authorNelson Ferreira <nelson.ferreira@ieee.org>
Sat, 3 Aug 2013 19:56:27 +0000 (15:56 -0400)
committerNelson Ferreira <nelson.ferreira@ieee.org>
Sat, 10 Aug 2013 22:35:06 +0000 (18:35 -0400)
commit8fde3aee8bbec76a09d6882b8390800a76663ee4
treeef2660f01671f87541ca444090169f3f88715e0e
parentadbbab7df114cc3e561d0f0f687b8ccbe978da1e
Fix package update from local repository mirror.

When updating packages from a local repository, package-get would
attempt to remove the file.
While this is useful behaviour for files downloaded from an update
site, for local directories it is not a good thing ;)

* lisp/package-get.el (package-get): move host to the uppermost
let. Surround all (delete-file full-package-filename) with (unless
(null host)

Signed-off-by: Nelson Ferreira <nelson.ferreira@ieee.org>
lisp/package-get.el