dimitri/el-get — pull request #1756 by ruediger (2014-05-17 17:26:27+00:00)
Title: Fixes for ELPA support

The biggest issue is that `el-get-elpa-post-remove` only deletes the package directory. But it won't remove the package from the `package-alist` which causes package.el to still consider the package installed and thus subsequent attempts to reinstall the package will fail. The patch changes the function to use `package-delete` instead.

Minor issues I had: `el-get-elpa-package-directory` should check if the elpa directory exists. On a fresh install `~/.emacs.d/elpa/` might not yet exist and this prevented package installation completely since the directory is queried before install is called. The patch also changes the function to consider packages in the global directories `package-directory-list`.

While debugging the major issue I also ran into trouble with `el-get-elpa-symlink-package` causing an error in `file-relative-name`. I changed it to provide a better error message.