all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Ricardo Wurmus <rekado@elephly.net>
To: Pierre Neidhardt <mail@ambrevar.xyz>
Cc: guix-devel <guix-devel@gnu.org>
Subject: Re: Quicklisp importer bug in tarball->extract->parse
Date: Thu, 11 Apr 2019 17:07:27 +0200	[thread overview]
Message-ID: <87r2a8inrk.fsf@elephly.net> (raw)
In-Reply-To: <87mukwlil1.fsf@ambrevar.xyz>


Pierre Neidhardt <mail@ambrevar.xyz> writes:

> The above will error out if "file-name" is not found.  For 1am:
>
> Queried file-name:
>
>   "1am.asd"
>
> Tarball actual file:
>
>   "1am-20141106-git/1am.asd"
>
> I don't think we can predict the root folder, and more generally
> projects have different trees.

We can add “--strip-components=1” and do the whole thing in
“with-directory-excursion”.  This way we’ll always know the directory
name.  You can also extract individual files in the archive by wildcard,
so you don’t need to know the exact name.

--
Ricardo

  reply	other threads:[~2019-04-11 15:07 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-03-29 20:07 Quicklisp importer bug in tarball->extract->parse swedebugia
2019-04-03  8:46 ` Pierre Neidhardt
2019-04-11 14:31   ` Pierre Neidhardt
2019-04-11 15:07     ` Ricardo Wurmus [this message]
2019-04-11 15:27       ` Pierre Neidhardt
2019-04-27  6:26     ` swedebugia
2019-04-27  7:15       ` Pierre Neidhardt

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=87r2a8inrk.fsf@elephly.net \
    --to=rekado@elephly.net \
    --cc=guix-devel@gnu.org \
    --cc=mail@ambrevar.xyz \
    /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/guix.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.