From mboxrd@z Thu Jan 1 00:00:00 1970 From: Tom Zander via Bug reports for GNU Guix Subject: bug#40549: [usability] revert last generation Date: Sat, 11 Apr 2020 11:23:52 +0200 Message-ID: <6171889.DvuYhMxLoT@cherry> Reply-To: Tom Zander Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7Bit Return-path: Received: from eggs.gnu.org ([2001:470:142:3::10]:39110) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jNCNr-00053P-1f for bug-guix@gnu.org; Sat, 11 Apr 2020 05:25:03 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1jNCNq-0002YF-5w for bug-guix@gnu.org; Sat, 11 Apr 2020 05:25:02 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:44618) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1jNCNq-0002YA-39 for bug-guix@gnu.org; Sat, 11 Apr 2020 05:25:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1jNCNq-0003jV-0k for bug-guix@gnu.org; Sat, 11 Apr 2020 05:25:02 -0400 Sender: "Debbugs-submit" Resent-Message-ID: Received: from eggs.gnu.org ([2001:470:142:3::10]:39051) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jNCMs-0004kq-7f for bug-guix@gnu.org; Sat, 11 Apr 2020 05:24:03 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1jNCMr-0002DN-0Y for bug-guix@gnu.org; Sat, 11 Apr 2020 05:24:01 -0400 Received: from mx.kolabnow.com ([95.128.36.40]:46538) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1jNCMq-0002CS-Ek for bug-guix@gnu.org; Sat, 11 Apr 2020 05:24:00 -0400 Received: from localhost (unknown [127.0.0.1]) by ext-mx-out003.mykolab.com (Postfix) with ESMTP id 4DDAF40D30 for ; Sat, 11 Apr 2020 11:23:57 +0200 (CEST) Received: from mx.kolabnow.com ([127.0.0.1]) by localhost (ext-mx-out003.mykolab.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id X006GfGyfwpu for ; Sat, 11 Apr 2020 11:23:57 +0200 (CEST) Received: from int-mx001.mykolab.com (unknown [10.9.13.1]) by ext-mx-out003.mykolab.com (Postfix) with ESMTPS id CF2C3404CE for ; Sat, 11 Apr 2020 11:23:56 +0200 (CEST) Received: from ext-subm003.mykolab.com (unknown [10.9.6.3]) by int-mx001.mykolab.com (Postfix) with ESMTPS id 8989A557 for ; Sat, 11 Apr 2020 11:23:56 +0200 (CEST) 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-mx.org@gnu.org Sender: "bug-Guix" To: 40549@debbugs.gnu.org This could be nicer: I just installed something and want to revert this last generation, as seen in `guix package -l`. Doing a single call like `guix package -S 17 -d 18` does not work, and I'd like it to work. What it does is that it notices I'm currently on generation 18 and thus it can't delete that one. As such it just errors out and returns. What I expect to happen (regardless of order of arguments) is that it switches to the 17th generation and then deletes generation 18. -- Tom Zander