all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Stefan Monnier <monnier@iro.umontreal.ca>
To: Thomas Fitzsimmons <fitzsim@fitzsim.org>
Cc: "Fabián E. Gallina" <fgallina@gnu.org>, emacs-devel@gnu.org
Subject: Re: [elpa] master 872014e: Prevent accidental deletion of .git
Date: Sun, 08 Nov 2015 20:58:09 -0500	[thread overview]
Message-ID: <jwvk2pskkfa.fsf-monnier+emacsdiffs@gnu.org> (raw)
In-Reply-To: <E1ZvbIq-0004cL-VV@vcs.savannah.gnu.org> (Thomas Fitzsimmons's message of "Mon, 09 Nov 2015 01:31:25 +0000")

> +# Use && after the cd commands, not ;, to ensure the build fails
> +# immediately if the directory $(ARCHIVE_TMP)/packages does not exist.
> +# For process-archive this is crucial; otherwise batch-make-archive in
> +# archive-contents.el will interpret directories in the current
> +# directory as unreleased packages, and recursively delete them,
> +# including .git.  Prior to using &&, running "make process-archive"
> +# could silently delete all local git history!

Actually, I think the problem is in the code which does the deletion: it
should only do the delete files it positively knows should be deleted,
rather than deleting any files which seem to be out of place.

Once we change the handling of :core in elpa/admin/archive-contents.el
so that it sets up symlinks rather than performing copies, we should at
least be able to make the deletion less dangerous, e.g. by only deleting
symlinks and empty directories (so even if the deletion was erroneous,
no actual file contents was destroyed along the way).

Fabián, any news on this?


        Stefan



       reply	other threads:[~2015-11-09  1:58 UTC|newest]

Thread overview: 17+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <20151109013124.17711.29422@vcs.savannah.gnu.org>
     [not found] ` <E1ZvbIq-0004cL-VV@vcs.savannah.gnu.org>
2015-11-09  1:58   ` Stefan Monnier [this message]
2015-11-09  4:49     ` [elpa] master 872014e: Prevent accidental deletion of .git Thomas Fitzsimmons
2015-11-09  5:03       ` Stefan Monnier
2015-11-09 16:07         ` Eli Zaretskii
2015-11-09 16:38           ` Artur Malabarba
2015-11-09 16:45             ` Eli Zaretskii
2015-11-09 20:20               ` Stefan Monnier
2015-11-18 14:39         ` Thomas Fitzsimmons
2015-11-18 15:10           ` Stefan Monnier
2015-11-18 16:44             ` Stephen Leake
2015-11-18 17:35             ` Eli Zaretskii
2015-11-26  3:08             ` Thomas Fitzsimmons
2015-11-26  3:55               ` Stefan Monnier
2015-11-26 14:34                 ` Thomas Fitzsimmons
2015-11-26 15:42                   ` Stefan Monnier
2015-11-27  6:58                     ` Thomas Fitzsimmons
2015-11-27 15:27                       ` 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=jwvk2pskkfa.fsf-monnier+emacsdiffs@gnu.org \
    --to=monnier@iro.umontreal.ca \
    --cc=emacs-devel@gnu.org \
    --cc=fgallina@gnu.org \
    --cc=fitzsim@fitzsim.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.