[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
01/12: import/print: Return license with prefix.
From: |
guix-commits |
Subject: |
01/12: import/print: Return license with prefix. |
Date: |
Thu, 16 Apr 2020 17:43:18 -0400 (EDT) |
rekado pushed a commit to branch master
in repository guix.
commit 1475d45112243a37ae921df41977c4acf3064a6d
Author: Ricardo Wurmus <address@hidden>
AuthorDate: Tue Apr 14 17:23:33 2020 +0200
import/print: Return license with prefix.
* guix/import/print.scm (license->code): Prepend license: prefix.
---
guix/import/print.scm | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/guix/import/print.scm b/guix/import/print.scm
index 4c2a91f..b819e7c 100644
--- a/guix/import/print.scm
+++ b/guix/import/print.scm
@@ -1,5 +1,5 @@
;;; GNU Guix --- Functional package management for GNU
-;;; Copyright © 2017 Ricardo Wurmus <address@hidden>
+;;; Copyright © 2017, 2020 Ricardo Wurmus <address@hidden>
;;;
;;; This file is part of GNU Guix.
;;;
@@ -57,7 +57,7 @@ when evaluated."
;; Print either license variable name or the code for a license object
(define (license->code lic)
(let ((var (variable-name lic '(guix licenses))))
- (or var
+ (or (symbol-append 'license: var)
`(license
(name ,(license-name lic))
(uri ,(license-uri lic))
- branch master updated (7b2cb1b -> c9f321e), guix-commits, 2020/04/16
- 01/12: import/print: Return license with prefix.,
guix-commits <=
- 03/12: import/json: Add json->scheme-file., guix-commits, 2020/04/16
- 07/12: import/print: package->code: Wrap S-expression in definition., guix-commits, 2020/04/16
- 12/12: doc: Document building and installing from JSON files., guix-commits, 2020/04/16
- 05/12: scripts/package: Handle JSON files., guix-commits, 2020/04/16
- 10/12: import/utils: alist->package: Include arguments., guix-commits, 2020/04/16
- 02/12: import/print: package->code: Wrap build system value in module reference., guix-commits, 2020/04/16
- 09/12: import/json: json->code: Handle files with more than one definition., guix-commits, 2020/04/16
- 04/12: scripts/build: options->things-to-build: Handle .json files., guix-commits, 2020/04/16
- 06/12: import/json: Use json->code., guix-commits, 2020/04/16
- 11/12: import/print: Don't factorize URI if there's no version match., guix-commits, 2020/04/16