overtone / emacs-live

M-x start-hacking
http://overtone.github.com/emacs-live/
Other
1.52k stars 241 forks source link

Installer tries to copy current and parent pseudo-dirs. Was: Upgrading by running installer again fails to copy over old dir #129

Closed mathias closed 10 years ago

mathias commented 11 years ago

When I run the installer script again on top of an existing emacs-live installation, to upgrade to a newer verson, I get this:

======================================
     Emacs config files detected.
======================================

Found ~/.emacs.d config directory

Moved to /Users/mathiasx/emacs-live-old-config/.emacs.d
------------------------------------------

mv: rename /Users/mathiasx/.emacs-live-installer-tmp/overtone-emacs-live/. to /Users/mathiasx/.emacs.d/.: Invalid argument
mv: rename /Users/mathiasx/.emacs-live-installer-tmp/overtone-emacs-live/.. to /Users/mathiasx/.emacs.d/..: Invalid argument

Re-reading the error, I see what is happening here now. It's trying to copy . and .. directories from the overtone-emacs-live dir, which aren't real files, as we know, but it doesn't. I thought this was a failure to copy the old config files out of the way, but it's not that.

Seems like an ideal solution is to simply stop trying to copy those files. I'll look into it.

Mac OSX 10.8.4, bash version 4.2.45(2)-release (i386-apple-darwin12.3.0)

mathias commented 11 years ago

Occurring on https://github.com/overtone/emacs-live/blob/master/installer/install-emacs-live.sh#L157-L158

Trying to come up with a solution.