From 9a914764313657b82225cc36feb05ac50fe26635 Mon Sep 17 00:00:00 2001 From: Ludovic Courtès Date: Tue, 2 Sep 2014 21:25:57 +0200 Subject: profiles: Report version numbers in a separate column. * guix/profiles.scm (manifest-show-transaction)[package-strings, upgrade-strings]: Show version number in separate column. Show OUTPUT in first column, and only when it's different from "out". --- guix/profiles.scm | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/guix/profiles.scm b/guix/profiles.scm index 52bd5bc332..919f27d250 100644 --- a/guix/profiles.scm +++ b/guix/profiles.scm @@ -333,7 +333,9 @@ replacement if PORT is not Unicode-capable." "Display what will/would be installed/removed from MANIFEST by TRANSACTION." (define (package-strings name version output item) (map (lambda (name version output item) - (format #f " ~a-~a\t~a\t~a" name version output + (format #f " ~a~:[:~a~;~*~]\t~a\t~a" + name + (equal? output "out") output version (if (package? item) (package-output store item output) item))) @@ -343,9 +345,9 @@ replacement if PORT is not Unicode-capable." (right-arrow (current-error-port))) (define (upgrade-string name old-version new-version output item) - (format #f " ~a\t~a ~a ~a\t~a\t~a" name + (format #f " ~a~:[:~a~;~*~]\t~a ~a ~a\t~a" + name (equal? output "out") output old-version → new-version - output (if (package? item) (package-output store item output) item))) @@ -353,7 +355,7 @@ replacement if PORT is not Unicode-capable." (let-values (((remove install upgrade) (manifest-transaction-effects manifest transaction))) (match remove - ((($ name version output item _) ..1) + ((($ name version output item) ..1) (let ((len (length name)) (remove (package-strings name version output item))) (if dry-run? -- cgit v1.2.3 og/?id=b1cfac7a46a4f1760a723c475d371953e4148850'>root/tests/packages.scm
AgeCommit message (Expand)Author
2020-07-13packages: Ensure bags are insensitive to '%current-system'....Ludovic Courtès
2020-06-27packages: Recognize SHA3 and BLAKE2s for 'content-hash'....Ludovic Courtès
2020-06-11packages: 'package-grafts' returns grafts for all the relevant outputs....Ludovic Courtès
2020-06-06packages: Make 'bag-grafts' insensitive to '%current-target-system'....Ludovic Courtès
2020-05-23tests: Use a #:prefix for (gcrypt hash)....Ludovic Courtès
2020-05-22packages: Introduce <content-hash> and use it in <origin>....Ludovic Courtès
2020-05-14packages: Ensure bags are insensitive to '%current-target-system'....Ludovic Courtès
2020-03-31guix package: Do not misdiagnose upgrades when there are propagated inputs....Ludovic Courtès
2020-03-31guix package: Add 'transaction-upgrade-entry' test....Ludovic Courtès
2020-03-31guix package: 'transaction-upgrade-entry' swallows build requests....Ludovic Courtès
2020-01-16guix package: Export 'transaction-upgrade-entry'....Ludovic Courtès
2019-09-06packages: 'supported-package?' binds '%current-system' for graph traversal....Ludovic Courtès
2019-06-27Merge branch 'master' into core-updatesLudovic Courtès
2019-06-27packages: 'specification->package+output' distinguishes "no output specified"....Ludovic Courtès
2019-06-14tests: Make builds less expensive....Ludovic Courtès
2019-03-23Merge branch 'staging' into core-updatesMarius Bakke
2019-03-17packages: Add 'package-input-rewriting/spec'....Ludovic Courtès
2019-02-20Merge branch 'staging' into core-updatesMarius Bakke
2019-02-16packages: Remove duplicates from package cache....Ludovic Courtès
2019-02-06Merge branch 'master' into core-updatesRicardo Wurmus
2019-01-25packages: Add 'package-closure'....Ludovic Courtès
2019-01-21store: Rename '&nix-error' to '&store-error'....Ludovic Courtès
2019-01-15guix package: '--list-available' can use data from the cache....Ludovic Courtès
2019-01-15edit: Use 'specification->location' to read information from the cache....Ludovic Courtès
2019-01-15channels: Compute a package cache and use it....Ludovic Courtès
2019-01-15guix package: Avoid 'find-newest-available-packages'....Ludovic Courtès