all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Stephen Leake <stephen_leake@stephe-leake.org>
To: emacs-devel@gnu.org
Subject: Re: include Ada Reference Manual info files in ada-mode ELPA package?
Date: Sat, 27 Sep 2014 23:12:03 -0500	[thread overview]
Message-ID: <85lhp4gz8s.fsf@stephe-leake.org> (raw)
In-Reply-To: 85zjdqhys4.fsf@stephe-leake.org

Stephen Leake <stephen_leake@stephe-leake.org> writes:

> Perhaps making the ARM a separate ELPA package would be the right
> choice. It would be an info-only package, so there would be no .el file
> to hold the meta-data header. I guess I'd have to add one just for that.
> Would that be ok?

I tried this. It fails because `archive--metadata' in
elpa/admin/archive-contents.el thinks it's a simple (one-file) package,
because there is only one .el file. A simple fix is to also include
'dir' in that check. Here's a patch against ELPA head (also fixes a
small typo in an error message):

--- a/admin/archive-contents.el
+++ b/admin/archive-contents.el
@@ -167,7 +167,7 @@ EXTRAS is an alist with additional metadata.
 
 PKG is the name of the package and DIR is the directory where it is."
   (let* ((mainfile (expand-file-name (concat pkg ".el") dir))
-         (files (directory-files dir nil "\\.el\\'")))
+         (files (directory-files dir nil "^dir$\\|\\.el\\'")))
     (setq files (delete (concat pkg "-pkg.el") files))
     (setq files (delete (concat pkg "-autoloads.el") files))
     (cond
@@ -201,7 +201,7 @@ PKG is the name of the package and DIR is the directory where it is."
                   (list (cons :url url)
                         (cons :keywords keywords)))))))
      (t
-      (error "Can find main file %s file in %s" mainfile dir)))))
+      (error "Can't find main file %s file in %s" mainfile dir)))))
 
 (defun archive--process-simple-package (dir pkg vers desc req extras)
   "Deploy the contents of DIR into the archive as a simple package.


With that fix, the ada-ref-man package installs, and the info files show
up nicely.

Ok to install the patch in ELPA?

--
-- Stephe



  parent reply	other threads:[~2014-09-28  4:12 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-09-23 20:23 include Ada Reference Manual info files in ada-mode ELPA package? Stephen Leake
2014-09-23 22:28 ` Stefan Monnier
2014-09-24 10:14 ` Richard Stallman
2014-09-24 19:41   ` Stephen Leake
2014-09-24 21:57     ` Richard Stallman
2014-09-28  4:12 ` Stephen Leake [this message]
2014-09-28  9:06   ` Andreas Schwab
2014-09-28 14:00     ` Stephen Leake
2014-09-28 14:51       ` David Kastrup
2014-09-28 15:44         ` Drew Adams
2014-09-28 16:26           ` Stephen Leake
2014-09-28 16:25         ` Stephen Leake
2014-09-28 16:43   ` Stefan Monnier
2014-09-29 13:22     ` Stephen Leake
2014-09-29 13:51       ` Stefan Monnier

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=85lhp4gz8s.fsf@stephe-leake.org \
    --to=stephen_leake@stephe-leake.org \
    --cc=emacs-devel@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.