From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nikita Karetnikov Subject: Re: PRELIMINARY: [PATCH] guix package: Add '--list-generations'. Date: Wed, 18 Sep 2013 21:35:08 +0400 Message-ID: <871u4m8243.fsf@karetnikov.org> References: <87vc2o4qwc.fsf@gnu.org> <87r4d9r2lv.fsf@gnu.org> <874na4jfp4.fsf_-_@karetnikov.org> <87eh97616m.fsf@gnu.org> <87bo48xdgb.fsf@karetnikov.org> <87hadz9gze.fsf@gnu.org> <87fvtjdl7y.fsf@karetnikov.org> <87bo444e9q.fsf@gnu.org> <87fvtfzihg.fsf@karetnikov.org> <87ioybxdun.fsf@gnu.org> <877geq9wx6.fsf@karetnikov.org> <87zjrmgcjh.fsf@gnu.org> <87ob80os3c.fsf@karetnikov.org> <87li336ofs.fsf@gnu.org> <87wqmmxutb.fsf@karetnikov.org> <87zjrins47.fsf@gnu.org> <87zjrgok6l.fsf@karetnikov.org> <8738p8wgun.fsf@gnu.org> <87k3ihyq8a.fsf@karetnikov.org> <87ob7tm05z.fsf@gnu.org> <87d2o7q7rj.fsf@karetnikov.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]:39502) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VMLaC-0005Le-Ih for guix-devel@gnu.org; Wed, 18 Sep 2013 13:30:33 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VMLaB-0007lU-8U for guix-devel@gnu.org; Wed, 18 Sep 2013 13:30:32 -0400 List-Id: 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 > I=E2=80=99ve just found a bug. On my machine, =E2=80=98guix package -p t= est -l 2d=E2=80=99 > and =E2=80=98guix package -p test -l=E2=80=99 should return the same set = of > generations, but the fourth generation is shown twice in the former > case. Generations 4 and 5 have the same creation date for some reason: scheme@(guix ui)> dates-generations $4 =3D ((1379357250 . 1) (1379364436 . 2) (1379364463 . 3) (1379364530 . 4)= (1379364530 . 5) (1379419461 . 6)) Since this line (map (cut assoc-ref dates-generations <>) returns the first entry with the given key, the fourth generation is printed twice. I=E2=80=99ll try to replace the alist with something else. --=-=-= Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.10 (GNU/Linux) iQIcBAEBAgAGBQJSOeRQAAoJEM+IQzI9IQ38AZsP/i1XsKS0gqqgaUnL88dGqo58 tisvWMIZeWR0QTt3mR0iMpb5z4CELvkT8GcuLJEwYRNxACIwHqQ1x/O0U+E+Tt1+ YXNNexEn3KG8T0sUYM4hqAvxgkoER/GUj7iwR1lfrqxyLZYi9kr+plcGCw0ObDRA Fazgn6kmvtpJUQ+KlbB4AEXUb+c/yYlJbTfXWK9aUJivuQj1ESo2OTrzrJYDu3AO 85MVLMWYgXB4IkjiIaKuzopJw9aYoaZ3eru4jFR2ScMCxH57NHaiFwbJZvIYWexM DRYk3yTKTwbwXuBkQwcz5eGDyioPJjLqQFNtxQP6E6b61RsflvIJC5XMBu+QdBIW Zyo/K1vKzPkZ1XpFqtjGjWcEypAYCvdDfcp6DYSmyX5ChLY0Y6q+bNWbo1g43Ilb cnLmMs08Luve7YniFuinv42dxDwzQdH7GA0/f5k0A1EL2qng0OgFgdThCeOQKdcw KmQ5ohhaQBviAtSrzGNVFbAeT4EtZybgnuAJcqhQPv8hH8jjVwiOIeRb91txpEGb nPye6AI2brGoSvWgmXUPHoPKpbLteazsZeLrX5ddAUN39bNjkXajEzBZWmjaiwdq p30DDY29aamFkL+shyiA01YRj7+uMfgpvYloHnURBxRmu3YPkDOz59SVWO8sG4gE kAGksxheqgY4Nf1UG5bt =dDPN -----END PGP SIGNATURE----- --=-=-=--