Correctly link to gists for github recipes

This should fix the link on melpa.milkbox.net for recipes like
molokai-theme.
This commit is contained in:
Kyle Hargraves 2013-02-23 10:20:09 -06:00
parent 2424b0328a
commit 312313a744

View file

@ -30,7 +30,7 @@
source_url =
case source
when 'github' then "https://github.com/#{recipe['repo']}"
when 'github' then recipe['repo'].include?('/') ? "https://github.com/#{recipe['repo']}" : "https://gist.github.com/#{recipe['repo']}"
when 'wiki' then recipe.key?('files') ? nil : "http://www.emacswiki.org/emacs/#{pkgname}.el"
end