From: Eli Zaretskii <eliz@gnu.org>
To: Ivan Shmakov <ivan@siamics.net>
Cc: 19481@debbugs.gnu.org
Subject: bug#19481: package.el: support .tar archives featuring a pax_global_header entry
Date: Sat, 31 Jan 2015 13:22:21 +0200 [thread overview]
Message-ID: <83mw4zjitu.fsf@gnu.org> (raw)
In-Reply-To: <87386ri50z.fsf_-_@violet.siamics.net>
> From: Ivan Shmakov <ivan@siamics.net>
> Date: Sat, 31 Jan 2015 11:05:48 +0000
>
> >> * lisp/tar-mode.el (tar-header-extractable-p): New function.
> >> (tar-untar-buffer): Use it; or use the value of the new optional
> >> argument instead.
>
> >> * lisp/emacs-lisp/package.el (package-untar-buffer): Use
> >> tar-header-extractable-p.
> >> (package-tar-file-info): Consider the second file name in the
> >> archive if the first one has no directory component.
>
> > Thanks.
>
> > Can we have a test suite for this file,
>
> Which of the two? (Or three, to count the .tar file produced by
> $ git archive.)
I meant tar-mode.el, and specifically where the new function is used.
> FTR, the two changes I suggest are not /inter/dependent, so I
> intend to push them as two separate commits.
Does the tar-header-extractable-p function make any sense without its
use in package.el? If so, then yes, these should be 2 separate
commits.
> (And I wonder if
> eit makes sense to now file a separate Severity: wishlist bug
> report for tar-header-extractable-p, so to provide a somewhat
> extended background for the feature.)
Not sure it's worth your while.
> > Failing that, please describe how you tested these changes.
>
> I’ve tested these using my MW package, like:
>
> • C-x b *new-buffer* RET;
>
> • M-x cd RET ~/devel/mw-el-2015/ RET;
>
> • C-u M-! git archive --prefix=mw-0.2/ --format=tar
> HEAD 2> /dev/null RET;
>
> • M-x tar-mode RET;
>
> • M-x package-install-from-buffer RET.
Did you try unpacking a "normal" tar archive, to see nothing is
broken?
next prev parent reply other threads:[~2015-01-31 11:22 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-01-01 17:55 bug#19481: package.el: support .tar archives featuring a pax_global_header entry Ivan Shmakov
2015-01-01 18:27 ` Eli Zaretskii
2015-01-01 18:49 ` Ivan Shmakov
2015-01-28 20:54 ` Ivan Shmakov
2015-01-31 8:41 ` Eli Zaretskii
2015-01-31 11:05 ` Ivan Shmakov
2015-01-31 11:22 ` Eli Zaretskii [this message]
2015-02-07 20:10 ` bug#19481: new tar-header-extractable-p, to use in tar-untar-buffer Ivan Shmakov
2015-02-07 20:26 ` Eli Zaretskii
2016-02-23 11:30 ` Lars Ingebrigtsen
2019-06-25 20:53 ` bug#19481: package.el: support .tar archives featuring a pax_global_header entry Lars Ingebrigtsen
2020-01-20 18:35 ` Stefan Monnier
2020-08-13 9:01 ` Lars Ingebrigtsen
2020-08-19 13:42 ` Lars Ingebrigtsen
2015-01-01 18:38 ` Dmitry Gutov
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
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=83mw4zjitu.fsf@gnu.org \
--to=eliz@gnu.org \
--cc=19481@debbugs.gnu.org \
--cc=ivan@siamics.net \
/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 public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).