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)