From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nikita Karetnikov Subject: Re: [PATCH] guix package: Add '--delete-generations'. Date: Wed, 25 Sep 2013 08:21:30 +0400 Message-ID: <87eh8dzg39.fsf@karetnikov.org> References: <87vc2o4qwc.fsf@gnu.org> <87y57kljro.fsf@karetnikov.org> <87hae81uvo.fsf@gnu.org> <87li2oslzh.fsf_-_@karetnikov.org> <878uyo60gp.fsf@gnu.org> <877ge7onje.fsf@karetnikov.org> <87eh8ftuii.fsf@gnu.org> Mime-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha1; protocol="application/pgp-signature" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:55365) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VOgWw-0001VM-LT for guix-devel@gnu.org; Wed, 25 Sep 2013 00:16:51 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VOgWv-0005IW-PP for guix-devel@gnu.org; Wed, 25 Sep 2013 00:16:50 -0400 In-Reply-To: <87eh8ftuii.fsf@gnu.org> ("Ludovic =?utf-8?Q?Court=C3=A8s=22'?= =?utf-8?Q?s?= message of "Mon, 23 Sep 2013 17:41:57 +0200") 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-bounces+gcggd-guix-devel=m.gmane.org@gnu.org To: Ludovic =?utf-8?Q?Court=C3=A8s?= Cc: guix-devel@gnu.org --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable > Oh. I=E2=80=99d prefer if it would delete all generations but the curren= t one. > That=E2=80=99s a fairly useful pattern: suppose you want to make space on= your > disk (and you know you won=E2=80=99t need to roll back), it=E2=80=99d be = handy to run: > guix package --delete-generations && guix gc > Whereas if you have to use ranges, you end up doing something like: > guix package --list-generations |grep ^G > # check the number of the last generation... > guix package --delete-generations=3D..42 && guix gc > Conversely, removing *all* the generations is something you=E2=80=99re un= likely > to do very often. =E2=80=98--delete-generations=E2=80=99 could accept an additional argument,= say, =E2=80=98keep-current=E2=80=99. It=E2=80=99d be easier to implement, and I= find it less confusing. Would you accept such a solution? --=-=-= Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.10 (GNU/Linux) iQIcBAEBAgAGBQJSQmTNAAoJEM+IQzI9IQ38eo8P/AxKGaqqJN1jMdK2iyftZOwc T6x5V+s9la8W/BKjMCfAPI3X6maWYRmXV1k1UD+dmt2Te2gXpu+rwtQeVXKo8cOX lTQ8XDj+I48cXkMX7CejLwYr4e50PV5nrM3Glun1IF+Z1ewLrAw7pNcGFh7Na0pN QsDYAXEHtlU1YuClbXdh0H94wUhyh16i59NliA0d3dKnSlMCdX6DJ2wsp11S2Qeh zq9zUw5j79H5PEnxE+x6ioqkgZjT7JV/37u7LsdI/6oLcyEFACvv35a8i6Ms853b Kkw9qTnWw8oIfx2fQDqDzSlOKn+bHt4CZB7podnUFLcfMn+NSF7n5QtqPGgilBvV i4rsfb7aZr0a3WPAJlF2afYJWSidtsCW/moNZGqAES6O9KcSEhKvbTlGE8rrKg7A Ru5hcKGQsYlVM34SfLyrWuN/aMvxTRUXQVA2Bfjppvk+B4vRDFZqfWJ8CWo4KoSM R5T7uaMLugtmabwHj3t77MXkFLth1mYid3aUI06Ma1uRhk3TRWm7IytTuQT/tKEv R8zzgbUH/4Gu+fD4rYVhiJnjheot5tnwYyabLcNEmycuB135ZE564dK2nrokHdkq ctSNwOTvV4Hp7qODFR882MgIcVvzHUlzHrp3qTqBkwCKGg2N9MPBcG6zUMklB+zl QC/bs8r0l86aSXg/15SA =xz6S -----END PGP SIGNATURE----- --=-=-=--