aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristopher Baines <christopher.baines@digital.cabinet-office.gov.uk>2017-05-18 07:41:18 +0100
committerChristopher Baines <christopher.baines@digital.cabinet-office.gov.uk>2017-05-18 07:41:18 +0100
commit68fc1db0280c0a4295cc96c1444309f1c1ada1df (patch)
treeaf5a0ac328ab5275a9307fd91603f7a3c136845f
parentd7e63804af18dd9645ef2d6bb1d80e9591e55864 (diff)
downloadgnu-guix-release_6.tar
gnu-guix-release_6.tar.gz
Just use GitHub releases for refreshing GOV.UK packagesrelease_6
This is a more reliable way of getting all the latest releases, which sometimes doesn't happen if there is preferences for the GitHub releases.
-rw-r--r--guix/import/github.scm16
1 files changed, 4 insertions, 12 deletions
diff --git a/guix/import/github.scm b/guix/import/github.scm
index 89712903aa..ea47043692 100644
--- a/guix/import/github.scm
+++ b/guix/import/github.scm
@@ -146,18 +146,10 @@ the package e.g. 'bedtools2'. Return #f if there is no releases"
"https://api.github.com/repos/"
(github-user-slash-repository url)
"/tags"))
- (json (let
- ((releases
- (json-fetch*
- (if token
- (string-append releases-api-url "?access_token=" token)
- releases-api-url))))
- (if (null? releases)
- (json-fetch*
- (if token
- (string-append tags-api-url "?access_token=" token)
- tags-api-url))
- releases))))
+ (json (json-fetch*
+ (if token
+ (string-append tags-api-url "?access_token=" token)
+ tags-api-url))))
(if (eq? json #f)
(if token
(error "Error downloading release information through the GitHub