From 12ad53d429e5d5d4297499811a447905e234b28d Mon Sep 17 00:00:00 2001 From: emacs18 Date: Mon, 31 Mar 2014 06:55:43 -0700 Subject: [PATCH] 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. --- package-build.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package-build.el b/package-build.el index c8b613bf..e6efdb20 100644 --- a/package-build.el +++ b/package-build.el @@ -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)