]> git.eshelyaron.com Git - emacs.git/commitdiff
lisp/startup.el: Fix bug#14639.
authorJuanma Barranquero <lekktu@gmail.com>
Mon, 17 Jun 2013 15:33:52 +0000 (17:33 +0200)
committerJuanma Barranquero <lekktu@gmail.com>
Mon, 17 Jun 2013 15:33:52 +0000 (17:33 +0200)
 (command-line): Expand package name returned by `package--description-file'.

lisp/ChangeLog
lisp/startup.el

index 64745559126ed45b524caf57da8f5eba0611cefb..ccc90427de2a7fbd23409139c57f41020393a68d 100644 (file)
@@ -1,3 +1,8 @@
+2013-06-17  Juanma Barranquero  <lekktu@gmail.com>
+
+       * startup.el (command-line): Expand package name returned by
+       `package--description-file' (bug#14639).
+
 2013-06-17  Dmitry Gutov  <dgutov@yandex.ru>
 
        * emacs-lisp/package.el (package-load-descriptor): Do not call
index 52dd6b074ba6347cfca67df1aa89a801e15ff0f1..77b2bcec5b7bda1e1654b8f958fde308f44e4fc0 100644 (file)
@@ -1203,7 +1203,9 @@ the `--debug-init' option to view a complete error backtrace."
                 (when (let ((subdir (expand-file-name subdir dir)))
                          (and (file-directory-p subdir)
                               (file-exists-p
-                               (package--description-file subdir))))
+                               (expand-file-name
+                                (package--description-file subdir)
+                                subdir))))
                   (throw 'package-dir-found t)))))))
        (package-initialize))