Browse Source

packages: Use '@' in package record printers.

* guix/packages.scm <package>: Use '@' in record printer.
* guix/import/cabal.scm <cabal-package>: Likewise
* guix/import/elpa.scm <elpa-package>: Likewise.
* tests/packages.scm: Adapt to it.
gn-latest-20200428
Mathieu Lirzin 5 years ago
parent
commit
74e667d149
4 changed files with 5 additions and 5 deletions
  1. +1
    -1
      guix/import/cabal.scm
  2. +1
    -1
      guix/import/elpa.scm
  3. +1
    -1
      guix/packages.scm
  4. +2
    -2
      tests/packages.scm

+ 1
- 1
guix/import/cabal.scm View File

@ -608,7 +608,7 @@ If #f use the function 'port-filename' to obtain it."
(set-record-type-printer! <cabal-package>
(lambda (package port)
(format port "#<cabal-package ~a-~a>"
(format port "#<cabal-package ~a@~a>"
(cabal-package-name package)
(cabal-package-version package))))


+ 1
- 1
guix/import/elpa.scm View File

@ -121,7 +121,7 @@ REPO."
(set-record-type-printer! <elpa-package>
(lambda (package port)
(format port "#<elpa-package ~a-~a>"
(format port "#<elpa-package ~a@~a>"
(elpa-package-name package)
(elpa-package-version package))))


+ 1
- 1
guix/packages.scm View File

@ -278,7 +278,7 @@ name of its URI."
(lambda (package port)
(let ((loc (package-location package))
(format simple-format))
(format port "#<package ~a-~a ~a~a>"
(format port "#<package ~a@~a ~a~a>"
(package-name package)
(package-version package)
(if loc


+ 2
- 2
tests/packages.scm View File

@ -58,7 +58,7 @@
(test-begin "packages")
(test-assert "printer with location"
(string-match "^#<package foo-0 foo.scm:42 [[:xdigit:]]+>$"
(string-match "^#<package foo@0 foo.scm:42 [[:xdigit:]]+>$"
(with-output-to-string
(lambda ()
(write
@ -66,7 +66,7 @@
(location (make-location "foo.scm" 42 7))))))))
(test-assert "printer without location"
(string-match "^#<package foo-0 [[:xdigit:]]+>$"
(string-match "^#<package foo@0 [[:xdigit:]]+>$"
(with-output-to-string
(lambda ()
(write


Loading…
Cancel
Save