From mboxrd@z Thu Jan 1 00:00:00 1970 From: ludo@gnu.org (Ludovic =?UTF-8?Q?Court=C3=A8s?=) Subject: bug#23780: [PATCH] import: pypi: do not fail when 'run_requires' is missing from the metadata. Date: Fri, 17 Jun 2016 17:09:02 +0200 Message-ID: <8760t7vomp.fsf@gnu.org> References: <20160617061639.666c57c6@scratchpost.org> <1466167435-10265-1-git-send-email-tipecaml@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:34965) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bDvPK-00011O-1S for bug-guix@gnu.org; Fri, 17 Jun 2016 11:10:09 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bDvPG-0005vv-HU for bug-guix@gnu.org; Fri, 17 Jun 2016 11:10:05 -0400 Received: from debbugs.gnu.org ([208.118.235.43]:60306) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bDvPG-0005vr-E1 for bug-guix@gnu.org; Fri, 17 Jun 2016 11:10:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1bDvPG-0007lE-B0 for bug-guix@gnu.org; Fri, 17 Jun 2016 11:10:02 -0400 Sender: "Debbugs-submit" Resent-Message-ID: In-Reply-To: <1466167435-10265-1-git-send-email-tipecaml@gmail.com> (Cyril Roelandt's message of "Fri, 17 Jun 2016 14:43:55 +0200") List-Id: Bug reports for GNU Guix List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-guix-bounces+gcggb-bug-guix=m.gmane.org@gnu.org Sender: "bug-Guix" To: Cyril Roelandt Cc: 23780@debbugs.gnu.org Cyril Roelandt skribis: > * guix/import/pypi.scm (read-wheel-metadata): do not crash when 'run_requ= ires' > is missing from the metadata. [...] > + (requirements (if run_requires > + (hash-ref (list-ref run_requir= es 0) > + "requires") > + '()))) Please align the =E2=80=98if=E2=80=99 branches with the condition. :-) Otherwise LGTM, thanks for the quick fix! Ludo=E2=80=99.