summaryrefslogtreecommitdiff
path: root/lisp/use-package/use-package.el
diff options
context:
space:
mode:
authorJohn Wiegley <johnw@newartisans.com>2015-03-15 21:23:40 -0500
committerJohn Wiegley <johnw@newartisans.com>2015-03-15 21:23:40 -0500
commit5c85433fac3d51f6df0a82d670b3c3a147d09164 (patch)
tree44169d425e7e82d479e18bf6fe7d522258b7b3d6 /lisp/use-package/use-package.el
parenta2030288716a2aa315482fa265cc970b5a208703 (diff)
downloademacs-5c85433fac3d51f6df0a82d670b3c3a147d09164.tar.gz
emacs-5c85433fac3d51f6df0a82d670b3c3a147d09164.tar.bz2
emacs-5c85433fac3d51f6df0a82d670b3c3a147d09164.zip
Relax a path normalization check
Diffstat (limited to 'lisp/use-package/use-package.el')
-rw-r--r--lisp/use-package/use-package.el5
1 files changed, 1 insertions, 4 deletions
diff --git a/lisp/use-package/use-package.el b/lisp/use-package/use-package.el
index be4b0cd7c09..b843725eccb 100644
--- a/lisp/use-package/use-package.el
+++ b/lisp/use-package/use-package.el
@@ -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))