]> git.eshelyaron.com Git - emacs.git/commitdiff
Relax a path normalization check
authorJohn Wiegley <johnw@newartisans.com>
Mon, 16 Mar 2015 02:23:40 +0000 (21:23 -0500)
committerJohn Wiegley <johnw@newartisans.com>
Mon, 16 Mar 2015 02:23:40 +0000 (21:23 -0500)
lisp/use-package/use-package.el

index be4b0cd7c09a7d3ff7d702608b1d9e42117173a2..b843725eccbbd752c9e44b05f586f2e68943cdf0 100644 (file)
@@ -228,10 +228,7 @@ the user specified.")
     (let ((path (if (file-name-absolute-p arg)
                     arg
                   (expand-file-name arg user-emacs-directory))))
-      (if (file-directory-p path)
-          (list path)
-        (use-package-error
-         (concat label " wants a directory path, or list of paths")))))
+      (list path)))
    ((and (not recursed) (listp arg) (listp (cdr arg)))
     (mapcar #'(lambda (x)
                 (car (use-package-normalize-paths label x t))) arg))