summaryrefslogtreecommitdiff
path: root/guix/ui.scm
diff options
context:
space:
mode:
authorLudovic Courtès <ludo@gnu.org>2014-01-13 18:49:26 +0100
committerLudovic Courtès <ludo@gnu.org>2014-01-13 18:49:26 +0100
commit8fa3e6b338fa9e2534ea971269ac2d3ed49a305b (patch)
treeffe8861d3bbc6412a25a133587bec78c59bc82f4 /guix/ui.scm
parent6869e5c90c3d7861150dba96fc97ee87892da83f (diff)
ui: Don't use hyphens in 'package->recutils' output.
* guix/ui.scm (package->recutils): Rename recutils field from 'home-page' to 'homepage'.
Diffstat (limited to 'guix/ui.scm')
-rw-r--r--guix/ui.scm8
1 files changed, 6 insertions, 2 deletions
diff --git a/guix/ui.scm b/guix/ui.scm
index f15419f7a8..2b1a5af199 100644
--- a/guix/ui.scm
+++ b/guix/ui.scm
@@ -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) ...)