Fix commentary extraction for single file packages

Explicitly read the commentary instead of relying on the package info.
Fixes a regression from changed pkg-info format, and has the added bonus
that it works on 24.4 as well, where pkg-info never contained the
commentary anyway.
This commit is contained in:
Sebastian Wiesner 2014-04-02 16:27:57 +02:00
parent d1df88461f
commit ab68a59456

View file

@ -953,7 +953,7 @@ Returns the archive entry for the package."
(kill-buffer)))
(pb/write-pkg-readme target-dir
(and (> (length pkg-info) 4) (aref pkg-info 4))
(pb/find-package-commentary pkg-source)
package-name)
(pb/archive-entry pkg-info 'single)))
((< 1 (length files))