From patchwork Thu Sep 26 18:28:12 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Martin Becze X-Patchwork-Id: 15485 Return-Path: X-Original-To: patchwork@mira.cbaines.net Delivered-To: patchwork@mira.cbaines.net Received: by mira.cbaines.net (Postfix, from userid 113) id D429D17442; Thu, 26 Sep 2019 19:29:14 +0100 (BST) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,T_DKIM_INVALID autolearn=unavailable autolearn_force=no version=3.4.0 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mira.cbaines.net (Postfix) with ESMTP id A312F17440 for ; Thu, 26 Sep 2019 19:29:14 +0100 (BST) Received: from localhost ([::1]:42408 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iDYVs-0004bL-Mr for patchwork@mira.cbaines.net; Thu, 26 Sep 2019 14:29:12 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:39576) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iDYVj-0004ai-Fx for guix-patches@gnu.org; Thu, 26 Sep 2019 14:29:04 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1iDYVi-0001YL-FV for guix-patches@gnu.org; Thu, 26 Sep 2019 14:29:03 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:36308) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1iDYVi-0001YF-CR for guix-patches@gnu.org; Thu, 26 Sep 2019 14:29:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1iDYVi-00073W-5G for guix-patches@gnu.org; Thu, 26 Sep 2019 14:29:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#37525] [PATCH 0/3] Recursive option for crate importer Resent-From: Martin Becze Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Thu, 26 Sep 2019 18:29:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 37525 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 37525@debbugs.gnu.org X-Debbugs-Original-To: guix-patches@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.156952252927095 (code B ref -1); Thu, 26 Sep 2019 18:29:02 +0000 Received: (at submit) by debbugs.gnu.org; 26 Sep 2019 18:28:49 +0000 Received: from localhost ([127.0.0.1]:45127 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iDYVU-00072x-PJ for submit@debbugs.gnu.org; Thu, 26 Sep 2019 14:28:48 -0400 Received: from lists.gnu.org ([209.51.188.17]:59449) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iDYVS-00072p-QX for submit@debbugs.gnu.org; Thu, 26 Sep 2019 14:28:47 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:39498) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iDYVQ-0004Nz-Ob for guix-patches@gnu.org; Thu, 26 Sep 2019 14:28:45 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1iDYVP-0001RR-Ef for guix-patches@gnu.org; Thu, 26 Sep 2019 14:28:44 -0400 Received: from mx1.riseup.net ([198.252.153.129]:47048) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1iDYVP-0001RD-56 for guix-patches@gnu.org; Thu, 26 Sep 2019 14:28:43 -0400 Received: from bell.riseup.net (bell-pn.riseup.net [10.0.1.178]) (using TLSv1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)) (Client CN "*.riseup.net", Issuer "COMODO RSA Domain Validation Secure Server CA" (verified OK)) by mx1.riseup.net (Postfix) with ESMTPS id 46fNjQ2bPbzDyWS for ; Thu, 26 Sep 2019 11:28:42 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=riseup.net; s=squak; t=1569522522; bh=8PFkOK+DSyNaElr6ML06q+zf4iYX9MQ6p9N4g6ZydB8=; h=From:To:Cc:Subject:Date:From; b=s3T2xoEB9J/95GN25IhTElfl3fFYlacTN0Zc7YdIm46nk09O9RB23Ga280WCg+Z8b LREfLhZGzGDjhSgjhd0Y8VHl49+jNBiIZABZMDmDtDydsxIevP6SIUXD+YCQ1BhiSm cR+HIr++e4+sVjLVfkmhTQSr5sthOP+xs4sd8QXg= X-Riseup-User-ID: C126B9742C6C555F3A40B4ABC80F920817D3B427A7C260413EEC49BE605E163E Received: from [127.0.0.1] (localhost [127.0.0.1]) by bell.riseup.net (Postfix) with ESMTPSA id 46fNjP0wZjzJxhf; Thu, 26 Sep 2019 11:28:40 -0700 (PDT) From: Martin Becze Date: Thu, 26 Sep 2019 14:28:12 -0400 Message-Id: <20190926182812.10566-1-mjbecze@riseup.net> MIME-Version: 1.0 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 209.51.188.43 X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Martin Becze Errors-To: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org Sender: "Guix-patches" X-getmail-retrieved-from-mailbox: Patches This add recursive functionalty for the crate importer. Currently it doesn't respect the versioning. To do that we will need to add semver functionality as well so that we can look up the correct version of dependencies. Martin Becze (3): added recusive import functionality to the crate importer updated the crate import script to accept recursive option updated docs for import crate doc/guix.texi | 7 +++++++ guix/import/crate.scm | 29 +++++++++++++++++++---------- guix/scripts/import/crate.scm | 35 +++++++++++++++++++++++++---------- 3 files changed, 51 insertions(+), 20 deletions(-)