pkg - Improving error message on bad github urls

(cherry picked from commit 7cddc64e5a)
This commit is contained in:
Jay McCarthy 2013-01-09 07:34:56 -07:00 committed by Ryan Culpepper
parent b24c73ebb7
commit 6b2f905a2b

View File

@ -415,6 +415,10 @@
(update-install-info-orig-pkg
(match type
['github
(unless checksum
(pkg-error (~a "could not find checksum for github package source, which implies it doesn't exist\n"
" source: ~a")
pkg))
(match-define (list* user repo branch path)
(map path/param-path (url-path/no-slash pkg-url)))
(define new-url