emacs-bug-tracker
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#43171: closed ([PATCH 2/2] ui: Lexicographically sort transaction en


From: GNU bug Tracking System
Subject: bug#43171: closed ([PATCH 2/2] ui: Lexicographically sort transaction entries based on their package name.)
Date: Wed, 02 Sep 2020 17:26:02 +0000

Your message dated Wed, 02 Sep 2020 13:25:45 -0400
with message-id <87imcw6qg6.fsf@gmail.com>
and subject line Re: bug#43171: Acknowledgement ([PATCH 2/2] ui: 
Lexicographically sort transaction entries based on their package name.)
has caused the debbugs.gnu.org bug report #43171,
regarding [PATCH 2/2] ui: Lexicographically sort transaction entries based on 
their package name.
to be marked as done.

(If you believe you have received this mail in error, please contact
help-debbugs@gnu.org.)


-- 
43171: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=43171
GNU Bug Tracking System
Contact help-debbugs@gnu.org with problems
--- Begin Message --- Subject: [PATCH 2/2] ui: Lexicographically sort transaction entries based on their package name. Date: Wed, 2 Sep 2020 13:22:16 -0400
* guix/ui.scm (show-manifest-transaction): Sort entries to be displayed in a
tabulated view.
---
 guix/ui.scm | 27 +++++++++++++++------------
 1 file changed, 15 insertions(+), 12 deletions(-)

diff --git a/guix/ui.scm b/guix/ui.scm
index 01af3d93d3..e0d1dc1bb7 100644
--- a/guix/ui.scm
+++ b/guix/ui.scm
@@ -1234,18 +1234,21 @@ separator between subsequent columns."
                                     #:key dry-run?)
   "Display what will/would be installed/removed from MANIFEST by TRANSACTION."
   (define* (package-strings names versions outputs #:key old-versions)
-    (tabulate (zip (map (lambda (name output)
-                          (if (string=? output "out")
-                              name
-                              (string-append name ":" output)))
-                        names outputs)
-                   (if old-versions
-                       (map (lambda (old new)
-                          (if (string=? old new)
-                              (G_ "(dependencies or package changed)")
-                              (string-append old " " ??? " " new)))
-                            old-versions versions)
-                       versions))
+    (tabulate (stable-sort
+               (zip (map (lambda (name output)
+                           (if (string=? output "out")
+                               name
+                               (string-append name ":" output)))
+                         names outputs)
+                    (if old-versions
+                        (map (lambda (old new)
+                               (if (string=? old new)
+                                   (G_ "(dependencies or package changed)")
+                                   (string-append old " " ??? " " new)))
+                             old-versions versions)
+                        versions))
+               (lambda (x y)
+                 (string<? (first x) (first y))))
               #:initial-indent 3))
 
   (define ???                        ;an arrow that can be represented on 
stderr
-- 
2.27.0




--- End Message ---
--- Begin Message --- Subject: Re: bug#43171: Acknowledgement ([PATCH 2/2] ui: Lexicographically sort transaction entries based on their package name.) Date: Wed, 02 Sep 2020 13:25:45 -0400 User-agent: Gnus/5.13 (Gnus v5.13) Emacs/26.3 (gnu/linux)
help-debbugs@gnu.org (GNU bug Tracking System) writes:

> Thank you for filing a new bug report with debbugs.gnu.org.
>
> This is an automatically generated reply to let you know your message
> has been received.
>
> Your message is being forwarded to the package maintainers and other
> interested parties for their attention; they will reply in due course.
>
> Your message has been sent to the package maintainer(s):
>  guix-patches@gnu.org
>
> If you wish to submit further information on this problem, please
> send it to 43171@debbugs.gnu.org.
>
> Please do not send mail to help-debbugs@gnu.org unless you wish
> to report a problem with the Bug-tracking system.

Closing, this was meant to be sent to 43170.

Maxim


--- End Message ---

reply via email to

[Prev in Thread] Current Thread [Next in Thread]