Update package-build.el

Use file-equal-p rather than string-equal to compare paths so that different paths (using symlinks) pointing to the same directory are treated as same paths.
This commit is contained in:
emacs18 2014-03-31 06:55:43 -07:00
parent 673f920d02
commit 12ad53d429

View file

@ -1028,7 +1028,7 @@ Returns the archive entry for the package."
"Build archive for the recipe defined in the current buffer."
(interactive)
(unless (and (buffer-file-name)
(string-equal (file-name-directory (buffer-file-name))
(file-equal-p (file-name-directory (buffer-file-name))
package-build-recipes-dir))
(error "Buffer is not visiting a recipe"))
(when (buffer-modified-p)