[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
131/155: import: github: Use 'json-fetch'.
From: |
John Darrington |
Subject: |
131/155: import: github: Use 'json-fetch'. |
Date: |
Wed, 21 Dec 2016 20:48:41 +0000 (UTC) |
jmd pushed a commit to branch wip-installer
in repository guix.
commit 1d0c9cc50aa2668d69b031b4548852cce6e35c41
Author: Ludovic Courtès <address@hidden>
Date: Tue Dec 20 19:08:22 2016 +0100
import: github: Use 'json-fetch'.
* guix/import/github.scm (json-fetch*): Remove.
(latest-released-version): Adjust accordingly.
---
guix/import/github.scm | 15 ++-------------
1 file changed, 2 insertions(+), 13 deletions(-)
diff --git a/guix/import/github.scm b/guix/import/github.scm
index 0843dde..01452b1 100644
--- a/guix/import/github.scm
+++ b/guix/import/github.scm
@@ -23,23 +23,12 @@
#:use-module (guix utils)
#:use-module ((guix download) #:prefix download:)
#:use-module (guix import utils)
+ #:use-module (guix import json)
#:use-module (guix packages)
#:use-module (guix upstream)
#:use-module (web uri)
#:export (%github-updater))
-(define (json-fetch* url)
- "Return a list/hash representation of the JSON resource URL, or #f on
-failure."
- (call-with-output-file "/dev/null"
- (lambda (null)
- (with-error-to-port null
- (lambda ()
- (call-with-temporary-output-file
- (lambda (temp port)
- (and (url-fetch url temp)
- (call-with-input-file temp json->scm)))))))))
-
(define (find-extension url)
"Return the extension of the archive e.g. '.tar.gz' given a URL, or
false if none is recognized"
@@ -136,7 +125,7 @@ the package e.g. 'bedtools2'. Return #f if there is no
releases"
"https://api.github.com/repos/"
(github-user-slash-repository url)
"/releases"))
- (json (json-fetch*
+ (json (json-fetch
(if token
(string-append api-url "?access_token=" token)
api-url))))
- 148/155: gnu: xf86-video-vmware: Update to 13.2.1., (continued)
- 148/155: gnu: xf86-video-vmware: Update to 13.2.1., John Darrington, 2016/12/21
- 153/155: gnu: lablgtk: use ocamlfind in installation, John Darrington, 2016/12/21
- 155/155: installer: Add alternate method of finding TZDIR., John Darrington, 2016/12/21
- 89/155: Revert "gnu: linux-libre: Update to 4.9.", John Darrington, 2016/12/21
- 122/155: Update NEWS., John Darrington, 2016/12/21
- 01/155: gnu: Add graphical installer, John Darrington, 2016/12/21
- 33/155: doc: Update dot graphs., John Darrington, 2016/12/21
- 142/155: gnu: linux-libre: Avoid invalid "kconfig" input on armhf and mips64el., John Darrington, 2016/12/21
- 113/155: gnu: hunspell: Update to 1.5.4., John Darrington, 2016/12/21
- 114/155: gnu: hunspell: Add missing perl dependency., John Darrington, 2016/12/21
- 131/155: import: github: Use 'json-fetch'.,
John Darrington <=
- 151/155: Revert "gnu: curl: Update replacement to 7.52.0 [fixes CVE-2016-{9586, 9952, 9953}].", John Darrington, 2016/12/21
- 77/155: nls: Update 'pt_BR' translation., John Darrington, 2016/12/21
- 79/155: nls: Update 'fr' translation., John Darrington, 2016/12/21
- 76/155: nls: Update 'da' translation., John Darrington, 2016/12/21
- 86/155: gexp: Native inputs of nested gexps are properly accounted for., John Darrington, 2016/12/21
- 92/155: gnu: cutadapt: Update to 1.12., John Darrington, 2016/12/21
- 107/155: gnu: tor: Update to 0.2.9.8., John Darrington, 2016/12/21
- 112/155: gnu: Add Ancient Greek Aspell dictionary., John Darrington, 2016/12/21
- 74/155: gnu: hurd-headers: Update to 0.9., John Darrington, 2016/12/21
- 118/155: services: cuirass: Create the database directory., John Darrington, 2016/12/21