all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Stefan Kangas <stefan@marxist.se>
To: Stefan Monnier <monnier@iro.umontreal.ca>, emacs-devel@gnu.org
Subject: Re: [nongnu] elpa/rainbow-delimiters a32b39bdfe: Add license file with GPLv3
Date: Sat, 1 Jan 2022 19:02:30 -0500	[thread overview]
Message-ID: <CADwFkm=9vFkW3aAR5GOMdx9zauEw3r3JBVs0RWFgsCUu0M6U-w@mail.gmail.com> (raw)
In-Reply-To: <CADwFkm=P8OAmrXcTQ7Tb60=B1fguPK0FcK8wjABnsopksOhZ2Q@mail.gmail.com>

Stefan Kangas <stefan@marxist.se> writes:

> How about adding the files "LICENSE", "LICENSE.md" and "COPYING" to a
> global ignore list instead?  (Those three being the variations I have
> seen so far.)

IOW, how about something like this (untested)?  I think there are some
other files that we could always exclude as well, like ".dir-locals.el",
".github", "*-tests.el", and ".travis.yml".

diff --git a/elpa-admin.el b/elpa-admin.el
index b4ad318ef..37b3112dd 100644
--- a/elpa-admin.el
+++ b/elpa-admin.el
@@ -562,6 +562,10 @@ auxillary files unless TARBALL-ONLY is non-nil ."
                    "######## Build of package %s FAILED!!")
                  tarball)))))

+(defvar elpaa--make-tarball-global-ignore
+  '("COPYING" "LICENSE" "LICENSE.md")
+  "List of files that will not be included in the tarball.")
+
 (defun elpaa--make-one-tarball-1 ( tarball dir pkg-spec metadata
                                  &optional revision-function tarball-only)
   (elpaa--with-temp-files
@@ -572,7 +576,8 @@ auxillary files unless TARBALL-ONLY is non-nil ."
                (make-directory destdir)))
           (vers (nth 1 metadata))
           (elpaignore (expand-file-name ".elpaignore" dir))
-          (ignores (elpaa--spec-get pkg-spec :ignored-files))
+          (ignores (append (elpaa--spec-get pkg-spec :ignored-files)
+                           elpaa--make-tarball-global-ignore))
           (renames (elpaa--spec-get pkg-spec :renames))
           (ldir    (elpaa--spec-get pkg-spec :lisp-dir))
           (re (concat "\\`" (regexp-quote pkgname)



  reply	other threads:[~2022-01-02  0:02 UTC|newest]

Thread overview: 18+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <164107430330.17202.17260845381664886032@vcs2.savannah.gnu.org>
     [not found] ` <20220101215824.BB13CC0DEC3@vcs2.savannah.gnu.org>
2022-01-01 23:03   ` [nongnu] elpa/rainbow-delimiters a32b39bdfe: Add license file with GPLv3 Stefan Monnier
2022-01-01 23:47     ` Stefan Kangas
2022-01-02  0:02       ` Stefan Kangas [this message]
2022-01-02 11:52         ` Philip Kaludercic
2022-01-02 16:00           ` Stefan Kangas
2022-01-02 20:12           ` Stefan Monnier
2022-01-03  8:41             ` Stefan Kangas
2022-01-03 15:46               ` Stefan Monnier
2022-01-03  4:37           ` Richard Stallman
2022-01-03  8:20             ` Philip Kaludercic
2022-01-04  3:09               ` Richard Stallman
2022-01-02 20:02         ` Stefan Monnier
2022-01-02 20:24           ` Stefan Kangas
2022-01-02 20:31             ` Stefan Monnier
2022-01-04  4:04               ` Stefan Kangas
2022-01-04  6:04                 ` Stefan Monnier
2022-01-02  0:16       ` Stefan Monnier
2022-01-02  1:34         ` Stefan Kangas

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='CADwFkm=9vFkW3aAR5GOMdx9zauEw3r3JBVs0RWFgsCUu0M6U-w@mail.gmail.com' \
    --to=stefan@marxist.se \
    --cc=emacs-devel@gnu.org \
    --cc=monnier@iro.umontreal.ca \
    /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.