From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nikita Karetnikov Subject: Re: guix-package --roll-back Date: Sat, 12 Jan 2013 16:03:31 -0500 Message-ID: <871udqp0zr.fsf@karetnikov.org> References: <871uejyq9z.fsf@karetnikov.org> <874nj4sbfe.fsf@karetnikov.org> <87y5gf8sm1.fsf@gnu.org> <87hamy4yaj.fsf@karetnikov.org> <87pq1m5nxy.fsf@gnu.org> <87obh43j7r.fsf@karetnikov.org> <87vcbbqvw1.fsf@gnu.org> <87fw2ai3e1.fsf@karetnikov.org> <8738y8ekst.fsf@gnu.org> <87vcb4jmm8.fsf@karetnikov.org> <87obgvale8.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 ([208.118.235.92]:54125) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Tu8El-0007qL-L3 for bug-guix@gnu.org; Sat, 12 Jan 2013 16:03:35 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Tu8Ef-000496-CM for bug-guix@gnu.org; Sat, 12 Jan 2013 16:03:31 -0500 In-Reply-To: <87obgvale8.fsf@gnu.org> ("Ludovic =?utf-8?Q?Court=C3=A8s=22'?= =?utf-8?Q?s?= message of "(unknown date)") List-Id: Bug reports for GNU Guix List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-guix-bounces+gcggb-bug-guix=m.gmane.org@gnu.org Sender: bug-guix-bounces+gcggb-bug-guix=m.gmane.org@gnu.org To: Ludovic =?utf-8?Q?Court=C3=A8s?= Cc: bug-guix@gnu.org --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable > It actually does, but it has no side effect. I know that printing is a side effect. Why do you recommend to use 'alist-cons'? If it's not possible to display anything, then 'roll-back' won't be able to print the following messages. (simple-format #t "guix-package: switching from generation ~a to ~a~%" current-profile-number previous-profile-number) (leave (_ (string-append "guix-package: previous profile doesn't exist; " "not rolling back~%"))) Actually, if the above is correct, then it won't be possible to use 'roll-back' at all. (Because it creates symlinks.) I think that I misunderstood you. Please elaborate. > When =E2=80=98--profile=E2=80=99 is passed, the result of =E2=80=98parse-= options=E2=80=99 contains a > pair whose key is =E2=80=98profile=E2=80=99. The (assoc-ref opts 'profil= e) calls that > you see retrieve the argument given to =E2=80=98--profile=E2=80=99. It's clear. But where should I call (assoc-ref opts 'profile)? Should I do it in 'process-query'? Nikita --=-=-= Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.10 (GNU/Linux) iQIcBAEBAgAGBQJQ8c+8AAoJEM+IQzI9IQ38JoIP/ieIF463D5QTDCAG+r8J1z7j raN69GzWjaZG+fiDsHitOgMDIkPI9JzCHzVLIr2b2zphtvf6hae14ReFftPdhM7P yrkWkn4prI72v6emZp1JQxXamd76leM+L+jQL3obJS6TkG7Vi3xSsIFzOEJN7CPL AdHE56JZvEXCL5zuugTV3jsKm//xdWF+Uv7onQyfTjv7T9v5jR7HJnluG0jwK8PX zSJyj7X5lf8ROEAIHDC9ByfEabgDyM2OzkrnYwbYU1wh9xTsCelcQrUIS7wS4Py6 lP/HPfnMCBrclzMMsoMUlnRMapeLQOCnYLy9UljJiB/KinA2RUS0yhet7MJ8+V4h v/L/Rmt7ZVvtivyHg4ICTM5X1nGBhceuFmWjHublUKEMo/y/QtEc2jFMSnmWRb9v I7F6Bb/o2oDboWssGngueaxKtPCNWdIx3EMjTokBWCcixoUvcCr4hNV0AUDo0L6d 6AhHIklYo2fjKa0SkEO/n8y9r+2dt3UBbF51f9yREmkeJhTm5aqu91ZUOZjykpqH xcl4xTi+CcKQ7eakB54yC2CX/TYMkV/v2SX4Ef5NdVDgQFw5EywWB57muaIDkcIF aNzAZKxul8/MKPzTh9dyEY7r3qte1Zmf6Qlapya3qoFr4IDrBNtisrkPljGWMkpL d31Or/kUGJNyI7rBfkCu =nwF0 -----END PGP SIGNATURE----- --=-=-=--