From c070959b2099f643e220bc9122c9358429d5db26 Mon Sep 17 00:00:00 2001 From: Steve Purcell Date: Mon, 30 Jan 2012 13:27:51 +0000 Subject: [PATCH] Ensure that single-file wiki packages aren't bundled unnecessarily as tars --- package-build.el | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/package-build.el b/package-build.el index 147f293b..00c5016a 100644 --- a/package-build.el +++ b/package-build.el @@ -274,8 +274,11 @@ In turn, this function uses the :fetcher option in the config to choose a (cond ((not version) (print (format "Unable to check out repository for %s" name))) - ((= 1 (length files)) - (let* ((pkgsrc (expand-file-name (car files) pkg-cwd)) + ((or (eq 'wiki (plist-get cfg :fetcher)) + (= 1 (length files))) + (let* ((pkgsrc (expand-file-name (or (car files) + (concat file-name ".el")) + pkg-cwd)) (pkgdst (expand-file-name (concat file-name "-" version ".el") package-build-archive-dir))