From 8bc9315d36a6fe3d42243b370010ac863bd5f19e Mon Sep 17 00:00:00 2001 From: Donald Curtis Date: Tue, 12 Nov 2013 20:53:17 -0800 Subject: [PATCH] Add case-insensitive compare for package name. This makes it so single-file packages will be compared with the recipe name in a case-insensitive way. Closes #1106 --- package-build.el | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/package-build.el b/package-build.el index 9d9b9bd8..b51f0e4d 100644 --- a/package-build.el +++ b/package-build.el @@ -817,8 +817,8 @@ and a cl struct in Emacs HEAD. This wrapper normalises the results." file-name version cfg))) - (unless (string-equal (concat file-name ".el") - (file-name-nondirectory pkg-source)) + (unless (string-equal (downcase (concat file-name ".el")) + (downcase (file-name-nondirectory pkg-source))) (error "Single file %s does not match package name %s" (file-name-nondirectory pkg-source) file-name)) (when (file-exists-p pkg-target)