From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0 ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id n7lrD6a+YmFgDgAAgWs5BA (envelope-from ) for ; Sun, 10 Oct 2021 12:21:26 +0200 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0 with LMTPS id uOSLCaa+YmHSZQAA1q6Kng (envelope-from ) for ; Sun, 10 Oct 2021 10:21:26 +0000 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id E4B6F21F4A for ; Sun, 10 Oct 2021 12:21:25 +0200 (CEST) Received: from localhost ([::1]:33694 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mZVxM-0003bc-Uq for larch@yhetil.org; Sun, 10 Oct 2021 06:21:25 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:53224) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mZVwz-0003aS-Us for guix-patches@gnu.org; Sun, 10 Oct 2021 06:21:03 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:42962) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mZVwz-0004zu-MS for guix-patches@gnu.org; Sun, 10 Oct 2021 06:21:01 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1mZVwz-0003Od-IJ for guix-patches@gnu.org; Sun, 10 Oct 2021 06:21:01 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#50873] [PATCH 0/7] Fixes to =?UTF-8?Q?=E2=80=98guix?= home =?UTF-8?Q?import=E2=80=99?= Resent-From: Xinglu Chen Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Sun, 10 Oct 2021 10:21:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 50873 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 50873@debbugs.gnu.org Cc: Oleg Pykhalov , Ludovic =?UTF-8?Q?Court=C3=A8s?= , Andrew Tropin Received: via spool by 50873-submit@debbugs.gnu.org id=B50873.163386121812911 (code B ref 50873); Sun, 10 Oct 2021 10:21:01 +0000 Received: (at 50873) by debbugs.gnu.org; 10 Oct 2021 10:20:18 +0000 Received: from localhost ([127.0.0.1]:54488 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mZVwI-0003MA-0t for submit@debbugs.gnu.org; Sun, 10 Oct 2021 06:20:18 -0400 Received: from h87-96-130-155.cust.a3fiber.se ([87.96.130.155]:39692 helo=mail.yoctocell.xyz) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mZVwE-0003Li-0g for 50873@debbugs.gnu.org; Sun, 10 Oct 2021 06:20:16 -0400 From: Xinglu Chen DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=yoctocell.xyz; s=mail; t=1633861207; bh=w7K/Gbi1fZnKgOvf5mBaPX6IXr4E+vxggentIVr5vhY=; h=From:To:Cc:Subject:In-Reply-To:References:Date; b=ohpKWzPzlFSl81n1ogstBzp+c+98ST7Yk/PQvXLAZ6WkXhAoS2NlgJQUZjarOsYlw J9LODXZpb+Q/YjKuAXxgjU5RFqIMIQWe7JvJ/WQy/WkyZuriKJJCiQuXCo7QPtp0aD oc1L1/XfmBTboeYAJhgT9q74WgkuzkO3h2WMj4tQ= In-Reply-To: References: Message-Id: Date: Sun, 10 Oct 2021 12:19:57 +0200 MIME-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha256; protocol="application/pgp-signature" X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+larch=yhetil.org@gnu.org Sender: "Guix-patches" X-Migadu-Flow: FLOW_IN ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1633861285; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type:resent-cc:resent-from:resent-sender: resent-message-id:in-reply-to:in-reply-to:references:references: list-id:list-help:list-unsubscribe:list-subscribe:list-post: dkim-signature; bh=8iMQrbOHPq18IOHbGLynCMkCSP1TF9VCuUDwGwiB2pQ=; b=G31X88PDJ7UEqZb9LLWRoYMlW1O2lQEUGK6Yncqgvmt5gldMtpVC1sCbXpEKGSGIUPA8zy Iqh2YLW079Y3Z2jWG0Z4lf/WTb2P2EQi/jIx5WUG9XYRk6MiltgpooYbv9MOYXQcEfUQAf KNH0L4+7e6jkC7tcX2RQmum7fUA3y4icDjP/n/vItIEM7AASrwkYiv9E+6NXlaKAGdAW/g YiXpT+oaYDTVoHo6dqkn95/W2u/q2EFO4xk9OEAJWTYV0bI0IgEQO7hAuj33KWcB/VoCfe viJwG7G2kkVJxvse1ue5P8tDM3dnGY773+f7XEYSC7kxUnwwYZVxDpVy95r9yg== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1633861285; a=rsa-sha256; cv=none; b=L9I/KC2CVciBR4l6MZPVGQ5/Z7ldNpu6vccTU/71i4vycQDuw16+B0Pi2KACz2KscCALLd zCx5fiFHGQDSFqEIeRJy+84O8xA+WTA38WbBeleR5ifx2vLruXjwyjW1l0HmgKyl+M7ibU LC6lLopMXvkj/HfC2j9DjGx4eO/DoH7A2PH6ONvnUodtgRTIRyLxzMlunSU86yeZKFKKAV ZQmBygCqKbiK0JKY4+h9acUDMBfcZJycLakABYllxp0c5jrOlkK1Akmsam224q8LcxNy2J Ll/0jkC9R1OX+cfwQ4g8FwSlsgp4zKeMb0JIGFXAd1CSWMSlgt8hYpVhskq+xw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=yoctocell.xyz header.s=mail header.b=ohpKWzPz; dmarc=fail reason="SPF not aligned (relaxed)" header.from=yoctocell.xyz (policy=none); spf=pass (aspmx1.migadu.com: domain of guix-patches-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=guix-patches-bounces@gnu.org X-Migadu-Spam-Score: -0.91 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=yoctocell.xyz header.s=mail header.b=ohpKWzPz; dmarc=fail reason="SPF not aligned (relaxed)" header.from=yoctocell.xyz (policy=none); spf=pass (aspmx1.migadu.com: domain of guix-patches-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=guix-patches-bounces@gnu.org X-Migadu-Queue-Id: E4B6F21F4A X-Spam-Score: -0.91 X-Migadu-Scanner: scn0.migadu.com X-TUID: LSJuPm2qf6Vs --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Change since v1: * Remove uses of =E2=80=98slurp-file-gexp=E2=80=99. * Add tests for the Scheme API of (guix scripts home import). Xinglu Chen (7): guix home: import: Make the user to specify a destination directory. guix home: import: Allow multiple modules to be imported for each service. guix home: import: Fix module name for Bash service. guix home: import: Don=E2=80=99t use 'slurp-file-gexp'. guix home: import: Delete duplicate modules when importing. doc: Document the =E2=80=98guix home import=E2=80=99 subcommand. Add tests for =E2=80=98guix home import=E2=80=99. Makefile.am | 1 + doc/guix.texi | 32 +++++++ guix/scripts/home.scm | 25 +++-- guix/scripts/home/import.scm | 115 +++++++++++++---------- tests/home-import.scm | 174 +++++++++++++++++++++++++++++++++++ 5 files changed, 289 insertions(+), 58 deletions(-) create mode 100644 tests/home-import.scm base-commit: edbcbdabac9a64dba3850b0f7e596b396f044599 =2D-=20 2.33.0 --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQJJBAEBCAAzFiEEAVhh4yyK5+SEykIzrPUJmaL7XHkFAmFivk0VHHB1YmxpY0B5 b2N0b2NlbGwueHl6AAoJEKz1CZmi+1x5vSgP/2767jQ3mUl57HqAX7NFWSqSk96H vzd6BnavuQguchT5q2Fh5LJPlhTUhZlspY+qqv7fbTo7g2llpC7GfzVYVB5a2CT9 qN3XcTL+pGRH/YA0vXg6/aOnVXNADxjg9GIQvKtPBLieH6n3JWHeHYJuu+YGVghn iF1991tibtEsQnDQvgKJ158OVhpOXVQCyHy51O5qag7lgNQUrCtTcoIqbpHVc8Zr kVLliT2iblbFICUn8GjVLq8QGV4n++Y8TJAsarWhMu0PkpR2mZc9y20K4nxwBKWi ZQB81O7ULxxcrnESAM74+JgEhTcmJci4yLxzFePo9RSoeb+FLq7d4oNA002YZMC1 eHd9nwP2UvuePQtfmB7vppupinoIMP3aDw7pC9sN9JriODGv8h4fDfuBcux3qTNC jvzIwxYxOjmBaf3/7b2sI4Thmo5aNxfERqMrRupgFaRzquXr4oHbpjaeMNjHNa15 0jPJ4f+mUE9yEiwZokQFtcG6CYkQea9W1FaTgGZhtOIFvn2j13O2cLRQszr+7kix jdxjMJ61dkd1Gbc6NxrS36aVXmqf1hpihvqdqyoCKJoUNkPiHoBH9xa92zRN8+O4 kRnX00o5XKwK4cUUuPni++68Yr6NFOVdNgyr6diV3b3/iAtfjU+hzV7OutWlotYm chsUgfR65Ys38N1a =g6ar -----END PGP SIGNATURE----- --=-=-=--