From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:42277) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gb0g3-00062O-PU for guix-patches@gnu.org; Sun, 23 Dec 2018 05:08:08 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gb0fy-0001pG-Q4 for guix-patches@gnu.org; Sun, 23 Dec 2018 05:08:07 -0500 Received: from debbugs.gnu.org ([208.118.235.43]:56297) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1gb0fy-0001p6-IQ for guix-patches@gnu.org; Sun, 23 Dec 2018 05:08:02 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1gb0fy-0001XG-8l for guix-patches@gnu.org; Sun, 23 Dec 2018 05:08:02 -0500 Subject: [bug#33805] [PATCH]: refresh: Allow searching recursively Resent-Message-ID: Date: Sun, 23 Dec 2018 12:06:57 +0200 From: Efraim Flashner Message-ID: <20181223100657.GD2581@macbook41> References: <20181219201313.GC2581@macbook41> <20181219165321.2c33004c@centurylink.net> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="FeAIMMcddNRN4P4/" Content-Disposition: inline In-Reply-To: <20181219165321.2c33004c@centurylink.net> List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+kyle=kyleam.com@gnu.org Sender: "Guix-patches" To: Eric Bavier Cc: 33805@debbugs.gnu.org --FeAIMMcddNRN4P4/ Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Wed, Dec 19, 2018 at 04:54:32PM -0600, Eric Bavier wrote: > On Wed, 19 Dec 2018 22:13:13 +0200 > Efraim Flashner wrote: >=20 > > From 8e73b5e0b7ecbac3f4c407cee407b918060b7d1b Mon Sep 17 00:00:00 2001 > > From: Efraim Flashner > > Date: Wed, 19 Dec 2018 22:08:18 +0200 > > Subject: [PATCH] scripts: refresh: Allow searching recursively. > >=20 > > * guix/scripts/refresh.scm (refresh-recursive, list-recursive): New > > procedures. > > (show-help): Document it. > > (guix-refresh): Add flags and checks for new options. > > * doc/guix.texi (Invoking guix refresh): Document new options. > > --- > > doc/guix.texi | 32 +++++++++++++++++++++ > > guix/scripts/refresh.scm | 62 ++++++++++++++++++++++++++++++++++++++++ > > 2 files changed, 94 insertions(+) > >=20 > > diff --git a/doc/guix.texi b/doc/guix.texi > > index 20b5013fd..2888d1efb 100644 > > --- a/doc/guix.texi > > +++ b/doc/guix.texi > > @@ -7370,6 +7370,22 @@ are many packages, though, for which it lacks a = method to determine > > whether a new upstream release is available. However, the mechanism is > > extensible, so feel free to get in touch with us to add a new method! > > =20 > > +@table @code > > + > > +@item --recursive > > +Consider the packages specified, and all the packages upon which they = depend. > <...> > > +@item --list-recursive > > +List all the packages which one or more packages depend upon. >=20 > I think it would be nice to have some more symmetry between the names > of these options and existing options. Initially I was confused about > what business 'guix refresh' would have in being "recursive". >=20 > 'guix build --sources=3Dtransitive' seems like it behaves similarly, in > that it visits package inputs. >=20 > 'guix refresh --list-dependents' is the reverse of this > '--list-recursive', but the names do not immediately suggest this to > me. >=20 I created '--list-dependents' mostly on my way to '--recursive', but I didn't really like the name either. '--list-transitive' works well for me. I also think it would be nice if I would parse the other command line arguements, remove '--recursive', and pass the rest of them to 'guix refresh' for each of the (now transitive) packages. Then 'guix refresh --recursive --update foo' would work as expected=E2=84=A2. --=20 Efraim Flashner =D7=90=D7=A4=D7=A8=D7=99=D7=9D = =D7=A4=D7=9C=D7=A9=D7=A0=D7=A8 GPG key =3D A28B F40C 3E55 1372 662D 14F7 41AA E7DC CA3D 8351 Confidentiality cannot be guaranteed on emails sent or received unencrypted --FeAIMMcddNRN4P4/ Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCgAdFiEEoov0DD5VE3JmLRT3Qarn3Mo9g1EFAlwfXj0ACgkQQarn3Mo9 g1Eg4xAArl1C/6s2rMG46FP7RrmmD++XCLCm3TgSXrBKvWRP+v+tt1QS2Ep+Dsol pdorPTjAkOmoAc+aIyV6eDeVf+k0dvc0+GGHZ3OBZZt4hZsyju0pBbNWHUCg5H4C 3ucJOzKIDBUMd4lE3PRBr4h1LDNeKOxM312QKia+tDwn4ZrvwS3E2qoGG1WCxFAD gHINmglAfd7nWQxvInOwPNDbTkqz5wcDPPy6zUa1lzb+6D5en1EbWVCefqtw6aUV kxtCI1syTjHP7Jmbmd9b+9q1JqJjUj22+oi+/cfB7aPW/iprJHBASW80Xwe3DvY/ wwu1nGPFZnvoblz6bqsSvqQ6lon7+Ed56pgTBZen8u5XFgn600y8Rd7s13pEjiZW stxVJamTTiHNNL09BXf87pQ38q95lwe0mX4koY0odlgyMv4amMkgd7rRPp1kbxrA z0OV6KeM9i2XBQNdX+wMkbkHUmFOChCCNb73NFTHt/ZuFxTR4wIj0AFT52u6Q8zm o2LKQQg8ZD6zSYiHvLegD4d8GPKR/sq3wkKlhtlHLp8tbwnwBi3wwNABDqZxTpPg j6M0ZeqLdCKvXWoUHUI2rwfVObIWW/CbxMW+uPmQOV8U90gohxqq1+KvmIYAC8Mm EWn1FF7VE6+jQAX4xt4ESPoD7KntyM9T/xT1mP8TyrWTvUM4PCQ= =dAJk -----END PGP SIGNATURE----- --FeAIMMcddNRN4P4/--