me
/
guix
Archived
1
0
Fork 0

ui: Don't use hyphens in 'package->recutils' output.

* guix/ui.scm (package->recutils): Rename recutils field from
  'home-page' to 'homepage'.
master
Ludovic Courtès 2014-01-13 18:49:26 +01:00
parent 6869e5c90c
commit 8fa3e6b338
1 changed files with 6 additions and 2 deletions

View File

@ -1,5 +1,5 @@
;;; GNU Guix --- Functional package management for GNU
;;; Copyright © 2012, 2013 Ludovic Courtès <ludo@gnu.org>
;;; Copyright © 2012, 2013, 2014 Ludovic Courtès <ludo@gnu.org>
;;; Copyright © 2013 Mark H Weaver <mhw@netris.org>
;;; Copyright © 2013 Nikita Karetnikov <nikita@karetnikov.org>
;;;
@ -404,7 +404,11 @@ WIDTH columns."
(format port "location: ~a~%"
(or (and=> (package-location p) location->string)
(_ "unknown")))
(format port "home-page: ~a~%" (package-home-page p))
;; Note: Starting from version 1.6 or recutils, hyphens are not allowed in
;; field identifiers.
(format port "homepage: ~a~%" (package-home-page p))
(format port "license: ~a~%"
(match (package-license p)
(((? license? licenses) ...)