look for -pkg.el.in file in pkg-source directory

in case the `package.el` file is located in a subdirectory of the repository, we should look for the `package-pkg.el.in` file in that subdirectory.
This commit is contained in:
Donald Curtis 2013-05-02 21:34:41 -05:00
parent 29b2cd21e7
commit 9e60d5e557

View file

@ -773,7 +773,9 @@ FILES is a list of (SOURCE . DEST) relative filepath pairs."
(let ((default-directory pkg-cwd))
(or (pb/get-pkg-file-info pkg-file-source)
;; some packages (like magit) provide name-pkg.el.in
(pb/get-pkg-file-info (concat pkg-file ".in"))
(pb/get-pkg-file-info
(expand-file-name (concat pkg-file ".in")
(file-name-directory pkg-source)))
(pb/get-package-info pkg-source)))
file-name
version