From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ricardo Wurmus Subject: Re: Quicklisp importer bug in tarball->extract->parse Date: Thu, 11 Apr 2019 17:07:27 +0200 Message-ID: <87r2a8inrk.fsf@elephly.net> References: <874l7fzdbp.fsf@ambrevar.xyz> <87mukwlil1.fsf@ambrevar.xyz> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([209.51.188.92]:43370) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hEbIh-0007c6-Ab for guix-devel@gnu.org; Thu, 11 Apr 2019 11:07:40 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hEbIg-0001ak-DY for guix-devel@gnu.org; Thu, 11 Apr 2019 11:07:39 -0400 Received: from sender4-of-o53.zoho.com ([136.143.188.53]:21341) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1hEbIf-0001ZB-Pn for guix-devel@gnu.org; Thu, 11 Apr 2019 11:07:38 -0400 In-reply-to: <87mukwlil1.fsf@ambrevar.xyz> List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org Sender: "Guix-devel" To: Pierre Neidhardt Cc: guix-devel Pierre Neidhardt 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 =E2=80=9C--strip-components=3D1=E2=80=9D and do the whole thing = in =E2=80=9Cwith-directory-excursion=E2=80=9D. This way we=E2=80=99ll always = know the directory name. You can also extract individual files in the archive by wildcard, so you don=E2=80=99t need to know the exact name. -- Ricardo